You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/databases.md
+94-1Lines changed: 94 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,87 @@ POST https://cloud.appwrite.io/v1/databases
31
31
| enabled | 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. | 1 |
32
32
33
33
34
+
```http request
35
+
GET https://cloud.appwrite.io/v1/databases/transactions
36
+
```
37
+
38
+
** List transactions across all databases. **
39
+
40
+
### Parameters
41
+
42
+
| Field Name | Type | Description | Default |
43
+
| --- | --- | --- | --- |
44
+
| queries | array | Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). |[]|
45
+
46
+
47
+
```http request
48
+
POST https://cloud.appwrite.io/v1/databases/transactions
49
+
```
50
+
51
+
** Create a new transaction. **
52
+
53
+
### Parameters
54
+
55
+
| Field Name | Type | Description | Default |
56
+
| --- | --- | --- | --- |
57
+
| ttl | integer | Seconds before the transaction expires. | 300 |
58
+
59
+
60
+
```http request
61
+
GET https://cloud.appwrite.io/v1/databases/transactions/{transactionId}
| collectionId | string |**Required** Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection). ||
707
788
| 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. |[]|
789
+
| transactionId | string | Transaction ID to read uncommitted changes within the transaction. ||
708
790
709
791
710
792
```http request
@@ -722,6 +804,7 @@ POST https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collection
722
804
| documentId | string | 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. ||
723
805
| data | object | Document data as JSON object. | {} |
724
806
| 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). ||
807
+
| transactionId | string | Transaction ID for staging the operation. ||
725
808
726
809
727
810
```http request
@@ -737,6 +820,7 @@ POST https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collection
| 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. ||
739
822
| documents | array | Array of documents data as JSON objects. |[]|
823
+
| transactionId | string | Transaction ID for staging the operation. ||
740
824
741
825
742
826
```http request
@@ -753,6 +837,7 @@ PUT https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collectionI
| data | object | Document data as JSON object. Include only attribute and value pairs to be updated. | {} |
771
856
| 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. |[]|
857
+
| transactionId | string | Transaction ID for staging the operation. ||
| collectionId | string |**Required** Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection). ||
786
872
| 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. |[]|
873
+
| transactionId | string | Transaction ID for staging the operation. ||
787
874
788
875
789
876
```http request
@@ -800,6 +887,7 @@ GET https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collectionI
800
887
| collectionId | string |**Required** Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection). ||
| 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. |[]|
890
+
| transactionId | string | Transaction ID to read uncommitted changes within the transaction. ||
803
891
804
892
805
893
```http request
@@ -817,6 +905,7 @@ PUT https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collectionI
| data | object | Document data as JSON object. Include all required attributes of the document to be created or updated. | {} |
819
907
| permissions | array | An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions). ||
908
+
| transactionId | string | Transaction ID for staging the operation. ||
| data | object | Document data as JSON object. Include only attribute and value pairs to be updated. | {} |
836
925
| permissions | array | An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions). ||
926
+
| transactionId | string | Transaction ID for staging the operation. ||
| collectionId | string |**Required** Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection). ||
0 commit comments