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
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.
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.
1816
+
1817
+
1818
+
Parameters
1819
+
----------
1820
+
database_id : str
1821
+
Database ID.
1822
+
collection_id : str
1823
+
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.
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.
1861
+
1862
+
1863
+
Parameters
1864
+
----------
1865
+
database_id : str
1866
+
Database ID.
1867
+
collection_id : str
1868
+
Collection ID.
1869
+
documents : List[dict]
1870
+
Array of document data as JSON objects. May contain partial documents.
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.
1903
+
1904
+
Parameters
1905
+
----------
1906
+
database_id : str
1907
+
Database ID.
1908
+
collection_id : str
1909
+
Collection ID.
1910
+
data : dict
1911
+
Document data as JSON object. Include only attribute and value pairs to be updated.
1912
+
queries : List[str]
1913
+
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.
Bulk delete documents using queries, if no queries are passed then all documents are deleted.
1947
+
1948
+
Parameters
1949
+
----------
1950
+
database_id : str
1951
+
Database ID.
1952
+
collection_id : str
1953
+
Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).
1954
+
queries : List[str]
1955
+
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.
0 commit comments