Skip to content

Commit 010a002

Browse files
committed
Add bulk API methods
1 parent 1ca3e22 commit 010a002

File tree

270 files changed

+631
-267
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

270 files changed

+631
-267
lines changed

docs/databases.md

Lines changed: 64 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,8 +606,7 @@ GET https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collectionI
606606
POST https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collectionId}/documents
607607
```
608608

609-
** 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.
610-
**
609+
** 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. **
611610

612611
### Parameters
613612

@@ -620,6 +619,69 @@ POST https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collection
620619
| permissions | array | An array of permissions strings. By default, only the current user is granted all permissions. [Learn more about permissions](https://appwrite.io/docs/permissions). | |
621620

622621

622+
```http request
623+
POST https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collectionId}/documents
624+
```
625+
626+
** 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.
627+
**
628+
629+
### Parameters
630+
631+
| Field Name | Type | Description | Default |
632+
| --- | --- | --- | --- |
633+
| databaseId | string | **Required** Database ID. | |
634+
| collectionId | string | **Required** 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. | |
635+
| documents | array | Array of documents data as JSON objects. | [] |
636+
637+
638+
```http request
639+
PUT https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collectionId}/documents
640+
```
641+
642+
** 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.
643+
**
644+
645+
### Parameters
646+
647+
| Field Name | Type | Description | Default |
648+
| --- | --- | --- | --- |
649+
| databaseId | string | **Required** Database ID. | |
650+
| collectionId | string | **Required** Collection ID. | |
651+
| documents | array | Array of document data as JSON objects. May contain partial documents. | [] |
652+
653+
654+
```http request
655+
PATCH https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collectionId}/documents
656+
```
657+
658+
** 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. **
659+
660+
### Parameters
661+
662+
| Field Name | Type | Description | Default |
663+
| --- | --- | --- | --- |
664+
| databaseId | string | **Required** Database ID. | |
665+
| collectionId | string | **Required** Collection ID. | |
666+
| data | object | Document data as JSON object. Include only attribute and value pairs to be updated. | {} |
667+
| queries | array | 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. | [] |
668+
669+
670+
```http request
671+
DELETE https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collectionId}/documents
672+
```
673+
674+
** Bulk delete documents using queries, if no queries are passed then all documents are deleted. **
675+
676+
### Parameters
677+
678+
| Field Name | Type | Description | Default |
679+
| --- | --- | --- | --- |
680+
| databaseId | string | **Required** Database ID. | |
681+
| collectionId | string | **Required** Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection). | |
682+
| queries | array | 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. | [] |
683+
684+
623685
```http request
624686
GET https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId}
625687
```

docs/examples/account/create-anonymous-session.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>'); // Your project ID
99

1010
$account = new Account($client);

docs/examples/account/create-email-password-session.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>'); // Your project ID
99

1010
$account = new Account($client);

docs/examples/account/create-email-token.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>'); // Your project ID
99

1010
$account = new Account($client);

docs/examples/account/create-j-w-t.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>'); // Your project ID
99

1010
$account = new Account($client);

docs/examples/account/create-magic-u-r-l-token.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>'); // Your project ID
99

1010
$account = new Account($client);

docs/examples/account/create-mfa-authenticator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use Appwrite\Services\Account;
55
use Appwrite\Enums\AuthenticatorType;
66
77
$client = (new Client())
8-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
8+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
99
->setProject('<YOUR_PROJECT_ID>') // Your project ID
1010
->setSession(''); // The user session to authenticate with
1111

docs/examples/account/create-mfa-challenge.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use Appwrite\Services\Account;
55
use Appwrite\Enums\AuthenticationFactor;
66
77
$client = (new Client())
8-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
8+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
99
->setProject('<YOUR_PROJECT_ID>'); // Your project ID
1010

1111
$account = new Account($client);

docs/examples/account/create-mfa-recovery-codes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/create-o-auth2token.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use Appwrite\Services\Account;
55
use Appwrite\Enums\OAuthProvider;
66
77
$client = (new Client())
8-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
8+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
99
->setProject('<YOUR_PROJECT_ID>'); // Your project ID
1010

1111
$account = new Account($client);

docs/examples/account/create-phone-token.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>'); // Your project ID
99

1010
$account = new Account($client);

docs/examples/account/create-phone-verification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/create-recovery.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/create-session.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>'); // Your project ID
99

1010
$account = new Account($client);

docs/examples/account/create-verification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/create.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>'); // Your project ID
99

1010
$account = new Account($client);

docs/examples/account/delete-identity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/delete-mfa-authenticator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use Appwrite\Services\Account;
55
use Appwrite\Enums\AuthenticatorType;
66
77
$client = (new Client())
8-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
8+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
99
->setProject('<YOUR_PROJECT_ID>') // Your project ID
1010
->setSession(''); // The user session to authenticate with
1111

docs/examples/account/delete-session.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/delete-sessions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/get-mfa-recovery-codes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/get-prefs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/get-session.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/get.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/list-identities.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/list-logs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/list-mfa-factors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/list-sessions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/update-email.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/update-m-f-a.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/update-magic-u-r-l-session.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>'); // Your project ID
99

1010
$account = new Account($client);

docs/examples/account/update-mfa-authenticator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use Appwrite\Services\Account;
55
use Appwrite\Enums\AuthenticatorType;
66
77
$client = (new Client())
8-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
8+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
99
->setProject('<YOUR_PROJECT_ID>') // Your project ID
1010
->setSession(''); // The user session to authenticate with
1111

docs/examples/account/update-mfa-challenge.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/update-mfa-recovery-codes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/update-name.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

docs/examples/account/update-password.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Appwrite\Client;
44
use Appwrite\Services\Account;
55
66
$client = (new Client())
7-
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
88
->setProject('<YOUR_PROJECT_ID>') // Your project ID
99
->setSession(''); // The user session to authenticate with
1010

0 commit comments

Comments
 (0)