diff --git a/app/config/specs/open-api3-1.8.x-client.json b/app/config/specs/open-api3-1.8.x-client.json index ce119a5b2c..7724b1644a 100644 --- a/app/config/specs/open-api3-1.8.x-client.json +++ b/app/config/specs/open-api3-1.8.x-client.json @@ -6712,8 +6712,7 @@ "required": [ "databaseId", "collectionId", - "documentId", - "data" + "documentId" ], "responses": [ { @@ -6782,7 +6781,7 @@ "data": { "type": "object", "description": "Document data as JSON object. Include all required attributes of the document to be created or updated.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -6799,10 +6798,7 @@ "x-example": "", "x-nullable": true } - }, - "required": [ - "data" - ] + } } } } @@ -6904,7 +6900,7 @@ "data": { "type": "object", "description": "Document data as JSON object. Include only attribute and value pairs to be updated.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -10046,7 +10042,7 @@ "data": { "type": "object", "description": "Row data as JSON object. Include all required columns of the row to be created or updated.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -10164,7 +10160,7 @@ "data": { "type": "object", "description": "Row data as JSON object. Include only columns and value pairs to be updated.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", diff --git a/app/config/specs/open-api3-1.8.x-console.json b/app/config/specs/open-api3-1.8.x-console.json index ae3b98970f..42088c617b 100644 --- a/app/config/specs/open-api3-1.8.x-console.json +++ b/app/config/specs/open-api3-1.8.x-console.json @@ -11516,7 +11516,7 @@ "data": { "type": "object", "description": "Document data as JSON object. Include only attribute and value pairs to be updated.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "queries": { "type": "array", @@ -11814,8 +11814,7 @@ "required": [ "databaseId", "collectionId", - "documentId", - "data" + "documentId" ], "responses": [ { @@ -11884,7 +11883,7 @@ "data": { "type": "object", "description": "Document data as JSON object. Include all required attributes of the document to be created or updated.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -11901,10 +11900,7 @@ "x-example": "", "x-nullable": true } - }, - "required": [ - "data" - ] + } } } } @@ -12006,7 +12002,7 @@ "data": { "type": "object", "description": "Document data as JSON object. Include only attribute and value pairs to be updated.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -41806,7 +41802,7 @@ "data": { "type": "object", "description": "Row data as JSON object. Include only column and value pairs to be updated.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "queries": { "type": "array", @@ -42166,7 +42162,7 @@ "data": { "type": "object", "description": "Row data as JSON object. Include all required columns of the row to be created or updated.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -42284,7 +42280,7 @@ "data": { "type": "object", "description": "Row data as JSON object. Include only columns and value pairs to be updated.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -60634,8 +60630,8 @@ }, "logs": { "type": "string", - "description": "Certificate generation logs. This will return an empty string if generation did not run, or succeeded.", - "x-example": "HTTP challegne failed." + "description": "Logs from rule verification or certificate generation. Certificate generation logs are prioritized if both are available.", + "x-example": "Verification of DNS records failed with DNS resolver 8.8.8.8. Domain stage.myapp.com does not have DNS record." }, "renewAt": { "type": "string", @@ -60674,7 +60670,7 @@ "deploymentResourceId": "n3u9feiwmf", "deploymentVcsProviderBranch": "main", "status": "verified", - "logs": "HTTP challegne failed.", + "logs": "Verification of DNS records failed with DNS resolver 8.8.8.8. Domain stage.myapp.com does not have DNS record.", "renewAt": "datetime" } }, diff --git a/app/config/specs/open-api3-1.8.x-server.json b/app/config/specs/open-api3-1.8.x-server.json index 57c9d6ac31..ecb8bc4dcf 100644 --- a/app/config/specs/open-api3-1.8.x-server.json +++ b/app/config/specs/open-api3-1.8.x-server.json @@ -11031,7 +11031,7 @@ "data": { "type": "object", "description": "Document data as JSON object. Include only attribute and value pairs to be updated.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "queries": { "type": "array", @@ -11333,8 +11333,7 @@ "required": [ "databaseId", "collectionId", - "documentId", - "data" + "documentId" ], "responses": [ { @@ -11405,7 +11404,7 @@ "data": { "type": "object", "description": "Document data as JSON object. Include all required attributes of the document to be created or updated.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -11422,10 +11421,7 @@ "x-example": "", "x-nullable": true } - }, - "required": [ - "data" - ] + } } } } @@ -11529,7 +11525,7 @@ "data": { "type": "object", "description": "Document data as JSON object. Include only attribute and value pairs to be updated.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -31514,7 +31510,7 @@ "data": { "type": "object", "description": "Row data as JSON object. Include only column and value pairs to be updated.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "queries": { "type": "array", @@ -31880,7 +31876,7 @@ "data": { "type": "object", "description": "Row data as JSON object. Include all required columns of the row to be created or updated.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -32000,7 +31996,7 @@ "data": { "type": "object", "description": "Row data as JSON object. Include only columns and value pairs to be updated.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", diff --git a/app/config/specs/open-api3-latest-client.json b/app/config/specs/open-api3-latest-client.json index ce119a5b2c..7724b1644a 100644 --- a/app/config/specs/open-api3-latest-client.json +++ b/app/config/specs/open-api3-latest-client.json @@ -6712,8 +6712,7 @@ "required": [ "databaseId", "collectionId", - "documentId", - "data" + "documentId" ], "responses": [ { @@ -6782,7 +6781,7 @@ "data": { "type": "object", "description": "Document data as JSON object. Include all required attributes of the document to be created or updated.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -6799,10 +6798,7 @@ "x-example": "", "x-nullable": true } - }, - "required": [ - "data" - ] + } } } } @@ -6904,7 +6900,7 @@ "data": { "type": "object", "description": "Document data as JSON object. Include only attribute and value pairs to be updated.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -10046,7 +10042,7 @@ "data": { "type": "object", "description": "Row data as JSON object. Include all required columns of the row to be created or updated.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -10164,7 +10160,7 @@ "data": { "type": "object", "description": "Row data as JSON object. Include only columns and value pairs to be updated.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", diff --git a/app/config/specs/open-api3-latest-console.json b/app/config/specs/open-api3-latest-console.json index ae3b98970f..42088c617b 100644 --- a/app/config/specs/open-api3-latest-console.json +++ b/app/config/specs/open-api3-latest-console.json @@ -11516,7 +11516,7 @@ "data": { "type": "object", "description": "Document data as JSON object. Include only attribute and value pairs to be updated.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "queries": { "type": "array", @@ -11814,8 +11814,7 @@ "required": [ "databaseId", "collectionId", - "documentId", - "data" + "documentId" ], "responses": [ { @@ -11884,7 +11883,7 @@ "data": { "type": "object", "description": "Document data as JSON object. Include all required attributes of the document to be created or updated.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -11901,10 +11900,7 @@ "x-example": "", "x-nullable": true } - }, - "required": [ - "data" - ] + } } } } @@ -12006,7 +12002,7 @@ "data": { "type": "object", "description": "Document data as JSON object. Include only attribute and value pairs to be updated.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -41806,7 +41802,7 @@ "data": { "type": "object", "description": "Row data as JSON object. Include only column and value pairs to be updated.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "queries": { "type": "array", @@ -42166,7 +42162,7 @@ "data": { "type": "object", "description": "Row data as JSON object. Include all required columns of the row to be created or updated.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -42284,7 +42280,7 @@ "data": { "type": "object", "description": "Row data as JSON object. Include only columns and value pairs to be updated.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -60634,8 +60630,8 @@ }, "logs": { "type": "string", - "description": "Certificate generation logs. This will return an empty string if generation did not run, or succeeded.", - "x-example": "HTTP challegne failed." + "description": "Logs from rule verification or certificate generation. Certificate generation logs are prioritized if both are available.", + "x-example": "Verification of DNS records failed with DNS resolver 8.8.8.8. Domain stage.myapp.com does not have DNS record." }, "renewAt": { "type": "string", @@ -60674,7 +60670,7 @@ "deploymentResourceId": "n3u9feiwmf", "deploymentVcsProviderBranch": "main", "status": "verified", - "logs": "HTTP challegne failed.", + "logs": "Verification of DNS records failed with DNS resolver 8.8.8.8. Domain stage.myapp.com does not have DNS record.", "renewAt": "datetime" } }, diff --git a/app/config/specs/open-api3-latest-server.json b/app/config/specs/open-api3-latest-server.json index 57c9d6ac31..ecb8bc4dcf 100644 --- a/app/config/specs/open-api3-latest-server.json +++ b/app/config/specs/open-api3-latest-server.json @@ -11031,7 +11031,7 @@ "data": { "type": "object", "description": "Document data as JSON object. Include only attribute and value pairs to be updated.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "queries": { "type": "array", @@ -11333,8 +11333,7 @@ "required": [ "databaseId", "collectionId", - "documentId", - "data" + "documentId" ], "responses": [ { @@ -11405,7 +11404,7 @@ "data": { "type": "object", "description": "Document data as JSON object. Include all required attributes of the document to be created or updated.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -11422,10 +11421,7 @@ "x-example": "", "x-nullable": true } - }, - "required": [ - "data" - ] + } } } } @@ -11529,7 +11525,7 @@ "data": { "type": "object", "description": "Document data as JSON object. Include only attribute and value pairs to be updated.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -31514,7 +31510,7 @@ "data": { "type": "object", "description": "Row data as JSON object. Include only column and value pairs to be updated.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "queries": { "type": "array", @@ -31880,7 +31876,7 @@ "data": { "type": "object", "description": "Row data as JSON object. Include all required columns of the row to be created or updated.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -32000,7 +31996,7 @@ "data": { "type": "object", "description": "Row data as JSON object. Include only columns and value pairs to be updated.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", diff --git a/app/config/specs/swagger2-1.8.x-client.json b/app/config/specs/swagger2-1.8.x-client.json index ad85f3879e..3abbc9cde5 100644 --- a/app/config/specs/swagger2-1.8.x-client.json +++ b/app/config/specs/swagger2-1.8.x-client.json @@ -6793,8 +6793,7 @@ "required": [ "databaseId", "collectionId", - "documentId", - "data" + "documentId" ], "responses": [ { @@ -6856,8 +6855,8 @@ "data": { "type": "object", "description": "Document data as JSON object. Include all required attributes of the document to be created or updated.", - "default": {}, - "x-example": "{}" + "default": [], + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -6876,10 +6875,7 @@ "x-example": "", "x-nullable": true } - }, - "required": [ - "data" - ] + } } } ] @@ -6975,7 +6971,7 @@ "type": "object", "description": "Document data as JSON object. Include only attribute and value pairs to be updated.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -10049,7 +10045,7 @@ "type": "object", "description": "Row data as JSON object. Include all required columns of the row to be created or updated.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -10163,7 +10159,7 @@ "type": "object", "description": "Row data as JSON object. Include only columns and value pairs to be updated.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", diff --git a/app/config/specs/swagger2-1.8.x-console.json b/app/config/specs/swagger2-1.8.x-console.json index 589a6d57b5..c6565fe46c 100644 --- a/app/config/specs/swagger2-1.8.x-console.json +++ b/app/config/specs/swagger2-1.8.x-console.json @@ -11527,7 +11527,7 @@ "type": "object", "description": "Document data as JSON object. Include only attribute and value pairs to be updated.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "queries": { "type": "array", @@ -11815,8 +11815,7 @@ "required": [ "databaseId", "collectionId", - "documentId", - "data" + "documentId" ], "responses": [ { @@ -11878,8 +11877,8 @@ "data": { "type": "object", "description": "Document data as JSON object. Include all required attributes of the document to be created or updated.", - "default": {}, - "x-example": "{}" + "default": [], + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -11898,10 +11897,7 @@ "x-example": "", "x-nullable": true } - }, - "required": [ - "data" - ] + } } } ] @@ -11997,7 +11993,7 @@ "type": "object", "description": "Document data as JSON object. Include only attribute and value pairs to be updated.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -41723,7 +41719,7 @@ "type": "object", "description": "Row data as JSON object. Include only column and value pairs to be updated.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "queries": { "type": "array", @@ -42067,7 +42063,7 @@ "type": "object", "description": "Row data as JSON object. Include all required columns of the row to be created or updated.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -42181,7 +42177,7 @@ "type": "object", "description": "Row data as JSON object. Include only columns and value pairs to be updated.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -60568,8 +60564,8 @@ }, "logs": { "type": "string", - "description": "Certificate generation logs. This will return an empty string if generation did not run, or succeeded.", - "x-example": "HTTP challegne failed." + "description": "Logs from rule verification or certificate generation. Certificate generation logs are prioritized if both are available.", + "x-example": "Verification of DNS records failed with DNS resolver 8.8.8.8. Domain stage.myapp.com does not have DNS record." }, "renewAt": { "type": "string", @@ -60608,7 +60604,7 @@ "deploymentResourceId": "n3u9feiwmf", "deploymentVcsProviderBranch": "main", "status": "verified", - "logs": "HTTP challegne failed.", + "logs": "Verification of DNS records failed with DNS resolver 8.8.8.8. Domain stage.myapp.com does not have DNS record.", "renewAt": "datetime" } }, diff --git a/app/config/specs/swagger2-1.8.x-server.json b/app/config/specs/swagger2-1.8.x-server.json index e4337961f6..090a44e742 100644 --- a/app/config/specs/swagger2-1.8.x-server.json +++ b/app/config/specs/swagger2-1.8.x-server.json @@ -11032,7 +11032,7 @@ "type": "object", "description": "Document data as JSON object. Include only attribute and value pairs to be updated.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "queries": { "type": "array", @@ -11324,8 +11324,7 @@ "required": [ "databaseId", "collectionId", - "documentId", - "data" + "documentId" ], "responses": [ { @@ -11389,8 +11388,8 @@ "data": { "type": "object", "description": "Document data as JSON object. Include all required attributes of the document to be created or updated.", - "default": {}, - "x-example": "{}" + "default": [], + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -11409,10 +11408,7 @@ "x-example": "", "x-nullable": true } - }, - "required": [ - "data" - ] + } } } ] @@ -11510,7 +11506,7 @@ "type": "object", "description": "Document data as JSON object. Include only attribute and value pairs to be updated.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -31497,7 +31493,7 @@ "type": "object", "description": "Row data as JSON object. Include only column and value pairs to be updated.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "queries": { "type": "array", @@ -31847,7 +31843,7 @@ "type": "object", "description": "Row data as JSON object. Include all required columns of the row to be created or updated.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -31963,7 +31959,7 @@ "type": "object", "description": "Row data as JSON object. Include only columns and value pairs to be updated.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", diff --git a/app/config/specs/swagger2-latest-client.json b/app/config/specs/swagger2-latest-client.json index ad85f3879e..3abbc9cde5 100644 --- a/app/config/specs/swagger2-latest-client.json +++ b/app/config/specs/swagger2-latest-client.json @@ -6793,8 +6793,7 @@ "required": [ "databaseId", "collectionId", - "documentId", - "data" + "documentId" ], "responses": [ { @@ -6856,8 +6855,8 @@ "data": { "type": "object", "description": "Document data as JSON object. Include all required attributes of the document to be created or updated.", - "default": {}, - "x-example": "{}" + "default": [], + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -6876,10 +6875,7 @@ "x-example": "", "x-nullable": true } - }, - "required": [ - "data" - ] + } } } ] @@ -6975,7 +6971,7 @@ "type": "object", "description": "Document data as JSON object. Include only attribute and value pairs to be updated.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -10049,7 +10045,7 @@ "type": "object", "description": "Row data as JSON object. Include all required columns of the row to be created or updated.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -10163,7 +10159,7 @@ "type": "object", "description": "Row data as JSON object. Include only columns and value pairs to be updated.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", diff --git a/app/config/specs/swagger2-latest-console.json b/app/config/specs/swagger2-latest-console.json index 589a6d57b5..c6565fe46c 100644 --- a/app/config/specs/swagger2-latest-console.json +++ b/app/config/specs/swagger2-latest-console.json @@ -11527,7 +11527,7 @@ "type": "object", "description": "Document data as JSON object. Include only attribute and value pairs to be updated.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "queries": { "type": "array", @@ -11815,8 +11815,7 @@ "required": [ "databaseId", "collectionId", - "documentId", - "data" + "documentId" ], "responses": [ { @@ -11878,8 +11877,8 @@ "data": { "type": "object", "description": "Document data as JSON object. Include all required attributes of the document to be created or updated.", - "default": {}, - "x-example": "{}" + "default": [], + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -11898,10 +11897,7 @@ "x-example": "", "x-nullable": true } - }, - "required": [ - "data" - ] + } } } ] @@ -11997,7 +11993,7 @@ "type": "object", "description": "Document data as JSON object. Include only attribute and value pairs to be updated.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -41723,7 +41719,7 @@ "type": "object", "description": "Row data as JSON object. Include only column and value pairs to be updated.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "queries": { "type": "array", @@ -42067,7 +42063,7 @@ "type": "object", "description": "Row data as JSON object. Include all required columns of the row to be created or updated.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -42181,7 +42177,7 @@ "type": "object", "description": "Row data as JSON object. Include only columns and value pairs to be updated.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -60568,8 +60564,8 @@ }, "logs": { "type": "string", - "description": "Certificate generation logs. This will return an empty string if generation did not run, or succeeded.", - "x-example": "HTTP challegne failed." + "description": "Logs from rule verification or certificate generation. Certificate generation logs are prioritized if both are available.", + "x-example": "Verification of DNS records failed with DNS resolver 8.8.8.8. Domain stage.myapp.com does not have DNS record." }, "renewAt": { "type": "string", @@ -60608,7 +60604,7 @@ "deploymentResourceId": "n3u9feiwmf", "deploymentVcsProviderBranch": "main", "status": "verified", - "logs": "HTTP challegne failed.", + "logs": "Verification of DNS records failed with DNS resolver 8.8.8.8. Domain stage.myapp.com does not have DNS record.", "renewAt": "datetime" } }, diff --git a/app/config/specs/swagger2-latest-server.json b/app/config/specs/swagger2-latest-server.json index e4337961f6..090a44e742 100644 --- a/app/config/specs/swagger2-latest-server.json +++ b/app/config/specs/swagger2-latest-server.json @@ -11032,7 +11032,7 @@ "type": "object", "description": "Document data as JSON object. Include only attribute and value pairs to be updated.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "queries": { "type": "array", @@ -11324,8 +11324,7 @@ "required": [ "databaseId", "collectionId", - "documentId", - "data" + "documentId" ], "responses": [ { @@ -11389,8 +11388,8 @@ "data": { "type": "object", "description": "Document data as JSON object. Include all required attributes of the document to be created or updated.", - "default": {}, - "x-example": "{}" + "default": [], + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -11409,10 +11408,7 @@ "x-example": "", "x-nullable": true } - }, - "required": [ - "data" - ] + } } } ] @@ -11510,7 +11506,7 @@ "type": "object", "description": "Document data as JSON object. Include only attribute and value pairs to be updated.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -31497,7 +31493,7 @@ "type": "object", "description": "Row data as JSON object. Include only column and value pairs to be updated.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "queries": { "type": "array", @@ -31847,7 +31843,7 @@ "type": "object", "description": "Row data as JSON object. Include all required columns of the row to be created or updated.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -31963,7 +31959,7 @@ "type": "object", "description": "Row data as JSON object. Include only columns and value pairs to be updated.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}" }, "permissions": { "type": "array", diff --git a/docs/examples/1.8.x/client-android/java/databases/update-document.md b/docs/examples/1.8.x/client-android/java/databases/update-document.md index 0f13f74e08..74e4244cc6 100644 --- a/docs/examples/1.8.x/client-android/java/databases/update-document.md +++ b/docs/examples/1.8.x/client-android/java/databases/update-document.md @@ -14,7 +14,13 @@ databases.updateDocument( "", // databaseId "", // collectionId "", // documentId - Map.of("a", "b"), // data (optional) + Map.of( + "username", "walter.obrien", + "email", "walter.obrien@example.com", + "fullName", "Walter O'Brien", + "age", 33, + "isAdmin", false + ), // data (optional) List.of(Permission.read(Role.any())), // permissions (optional) "", // transactionId (optional) new CoroutineCallback<>((result, error) -> { diff --git a/docs/examples/1.8.x/client-android/java/databases/upsert-document.md b/docs/examples/1.8.x/client-android/java/databases/upsert-document.md index 8c72734f98..9e04ef544a 100644 --- a/docs/examples/1.8.x/client-android/java/databases/upsert-document.md +++ b/docs/examples/1.8.x/client-android/java/databases/upsert-document.md @@ -14,7 +14,13 @@ databases.upsertDocument( "", // databaseId "", // collectionId "", // documentId - Map.of("a", "b"), // data + Map.of( + "username", "walter.obrien", + "email", "walter.obrien@example.com", + "fullName", "Walter O'Brien", + "age", 30, + "isAdmin", false + ), // data (optional) List.of(Permission.read(Role.any())), // permissions (optional) "", // transactionId (optional) new CoroutineCallback<>((result, error) -> { diff --git a/docs/examples/1.8.x/client-android/java/tablesdb/update-row.md b/docs/examples/1.8.x/client-android/java/tablesdb/update-row.md index 89f2646d9d..c41cc09f0c 100644 --- a/docs/examples/1.8.x/client-android/java/tablesdb/update-row.md +++ b/docs/examples/1.8.x/client-android/java/tablesdb/update-row.md @@ -14,7 +14,13 @@ tablesDB.updateRow( "", // databaseId "", // tableId "", // rowId - Map.of("a", "b"), // data (optional) + Map.of( + "username", "walter.obrien", + "email", "walter.obrien@example.com", + "fullName", "Walter O'Brien", + "age", 33, + "isAdmin", false + ), // data (optional) List.of(Permission.read(Role.any())), // permissions (optional) "", // transactionId (optional) new CoroutineCallback<>((result, error) -> { diff --git a/docs/examples/1.8.x/client-android/java/tablesdb/upsert-row.md b/docs/examples/1.8.x/client-android/java/tablesdb/upsert-row.md index c6cfe6d1bc..0b40f6b976 100644 --- a/docs/examples/1.8.x/client-android/java/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/client-android/java/tablesdb/upsert-row.md @@ -14,7 +14,13 @@ tablesDB.upsertRow( "", // databaseId "", // tableId "", // rowId - Map.of("a", "b"), // data (optional) + Map.of( + "username", "walter.obrien", + "email", "walter.obrien@example.com", + "fullName", "Walter O'Brien", + "age", 33, + "isAdmin", false + ), // data (optional) List.of(Permission.read(Role.any())), // permissions (optional) "", // transactionId (optional) new CoroutineCallback<>((result, error) -> { diff --git a/docs/examples/1.8.x/client-android/kotlin/databases/update-document.md b/docs/examples/1.8.x/client-android/kotlin/databases/update-document.md index ba6d4d189f..49f0dbcffe 100644 --- a/docs/examples/1.8.x/client-android/kotlin/databases/update-document.md +++ b/docs/examples/1.8.x/client-android/kotlin/databases/update-document.md @@ -14,7 +14,13 @@ val result = databases.updateDocument( databaseId = "", collectionId = "", documentId = "", - data = mapOf( "a" to "b" ), // (optional) + data = mapOf( + "username" to "walter.obrien", + "email" to "walter.obrien@example.com", + "fullName" to "Walter O'Brien", + "age" to 33, + "isAdmin" to false + ), // (optional) permissions = listOf(Permission.read(Role.any())), // (optional) transactionId = "", // (optional) ) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/databases/upsert-document.md b/docs/examples/1.8.x/client-android/kotlin/databases/upsert-document.md index 4d95c9d684..42aff0ec0c 100644 --- a/docs/examples/1.8.x/client-android/kotlin/databases/upsert-document.md +++ b/docs/examples/1.8.x/client-android/kotlin/databases/upsert-document.md @@ -14,7 +14,13 @@ val result = databases.upsertDocument( databaseId = "", collectionId = "", documentId = "", - data = mapOf( "a" to "b" ), + data = mapOf( + "username" to "walter.obrien", + "email" to "walter.obrien@example.com", + "fullName" to "Walter O'Brien", + "age" to 30, + "isAdmin" to false + ), // (optional) permissions = listOf(Permission.read(Role.any())), // (optional) transactionId = "", // (optional) ) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/tablesdb/update-row.md b/docs/examples/1.8.x/client-android/kotlin/tablesdb/update-row.md index 91b2709058..20319e3b6d 100644 --- a/docs/examples/1.8.x/client-android/kotlin/tablesdb/update-row.md +++ b/docs/examples/1.8.x/client-android/kotlin/tablesdb/update-row.md @@ -14,7 +14,13 @@ val result = tablesDB.updateRow( databaseId = "", tableId = "", rowId = "", - data = mapOf( "a" to "b" ), // (optional) + data = mapOf( + "username" to "walter.obrien", + "email" to "walter.obrien@example.com", + "fullName" to "Walter O'Brien", + "age" to 33, + "isAdmin" to false + ), // (optional) permissions = listOf(Permission.read(Role.any())), // (optional) transactionId = "", // (optional) ) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/tablesdb/upsert-row.md b/docs/examples/1.8.x/client-android/kotlin/tablesdb/upsert-row.md index 6b1a45e5eb..3af7902c33 100644 --- a/docs/examples/1.8.x/client-android/kotlin/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/client-android/kotlin/tablesdb/upsert-row.md @@ -14,7 +14,13 @@ val result = tablesDB.upsertRow( databaseId = "", tableId = "", rowId = "", - data = mapOf( "a" to "b" ), // (optional) + data = mapOf( + "username" to "walter.obrien", + "email" to "walter.obrien@example.com", + "fullName" to "Walter O'Brien", + "age" to 33, + "isAdmin" to false + ), // (optional) permissions = listOf(Permission.read(Role.any())), // (optional) transactionId = "", // (optional) ) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-apple/examples/databases/update-document.md b/docs/examples/1.8.x/client-apple/examples/databases/update-document.md index 33dce44031..3a1b4c4bd9 100644 --- a/docs/examples/1.8.x/client-apple/examples/databases/update-document.md +++ b/docs/examples/1.8.x/client-apple/examples/databases/update-document.md @@ -10,7 +10,13 @@ let document = try await databases.updateDocument( databaseId: "", collectionId: "", documentId: "", - data: [:], // optional + data: [ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + ], // optional permissions: [Permission.read(Role.any())], // optional transactionId: "" // optional ) diff --git a/docs/examples/1.8.x/client-apple/examples/databases/upsert-document.md b/docs/examples/1.8.x/client-apple/examples/databases/upsert-document.md index e678632df2..4026c33d7b 100644 --- a/docs/examples/1.8.x/client-apple/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/client-apple/examples/databases/upsert-document.md @@ -10,7 +10,13 @@ let document = try await databases.upsertDocument( databaseId: "", collectionId: "", documentId: "", - data: [:], + data: [ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + ], // optional permissions: [Permission.read(Role.any())], // optional transactionId: "" // optional ) diff --git a/docs/examples/1.8.x/client-apple/examples/tablesdb/update-row.md b/docs/examples/1.8.x/client-apple/examples/tablesdb/update-row.md index 90bf66a966..e9b32e6c9a 100644 --- a/docs/examples/1.8.x/client-apple/examples/tablesdb/update-row.md +++ b/docs/examples/1.8.x/client-apple/examples/tablesdb/update-row.md @@ -10,7 +10,13 @@ let row = try await tablesDB.updateRow( databaseId: "", tableId: "", rowId: "", - data: [:], // optional + data: [ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + ], // optional permissions: [Permission.read(Role.any())], // optional transactionId: "" // optional ) diff --git a/docs/examples/1.8.x/client-apple/examples/tablesdb/upsert-row.md b/docs/examples/1.8.x/client-apple/examples/tablesdb/upsert-row.md index 5665f929e2..f1e3872200 100644 --- a/docs/examples/1.8.x/client-apple/examples/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/client-apple/examples/tablesdb/upsert-row.md @@ -10,7 +10,13 @@ let row = try await tablesDB.upsertRow( databaseId: "", tableId: "", rowId: "", - data: [:], // optional + data: [ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + ], // optional permissions: [Permission.read(Role.any())], // optional transactionId: "" // optional ) diff --git a/docs/examples/1.8.x/client-flutter/examples/databases/update-document.md b/docs/examples/1.8.x/client-flutter/examples/databases/update-document.md index 9a5b3ee7dd..92407b14ef 100644 --- a/docs/examples/1.8.x/client-flutter/examples/databases/update-document.md +++ b/docs/examples/1.8.x/client-flutter/examples/databases/update-document.md @@ -12,7 +12,13 @@ Document result = await databases.updateDocument( databaseId: '', collectionId: '', documentId: '', - data: {}, // optional + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }, // optional permissions: [Permission.read(Role.any())], // optional transactionId: '', // optional ); diff --git a/docs/examples/1.8.x/client-flutter/examples/databases/upsert-document.md b/docs/examples/1.8.x/client-flutter/examples/databases/upsert-document.md index 7e6eb1aea9..6ad76385f8 100644 --- a/docs/examples/1.8.x/client-flutter/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/client-flutter/examples/databases/upsert-document.md @@ -12,7 +12,13 @@ Document result = await databases.upsertDocument( databaseId: '', collectionId: '', documentId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, // optional permissions: [Permission.read(Role.any())], // optional transactionId: '', // optional ); diff --git a/docs/examples/1.8.x/client-flutter/examples/tablesdb/update-row.md b/docs/examples/1.8.x/client-flutter/examples/tablesdb/update-row.md index 91f2dd3cdf..cf7dd773ed 100644 --- a/docs/examples/1.8.x/client-flutter/examples/tablesdb/update-row.md +++ b/docs/examples/1.8.x/client-flutter/examples/tablesdb/update-row.md @@ -12,7 +12,13 @@ Row result = await tablesDB.updateRow( databaseId: '', tableId: '', rowId: '', - data: {}, // optional + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }, // optional permissions: [Permission.read(Role.any())], // optional transactionId: '', // optional ); diff --git a/docs/examples/1.8.x/client-flutter/examples/tablesdb/upsert-row.md b/docs/examples/1.8.x/client-flutter/examples/tablesdb/upsert-row.md index 4fb785d744..9d69ef6b62 100644 --- a/docs/examples/1.8.x/client-flutter/examples/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/client-flutter/examples/tablesdb/upsert-row.md @@ -12,7 +12,13 @@ Row result = await tablesDB.upsertRow( databaseId: '', tableId: '', rowId: '', - data: {}, // optional + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }, // optional permissions: [Permission.read(Role.any())], // optional transactionId: '', // optional ); diff --git a/docs/examples/1.8.x/client-graphql/examples/databases/update-document.md b/docs/examples/1.8.x/client-graphql/examples/databases/update-document.md index cf43d9eed0..056a5bed4e 100644 --- a/docs/examples/1.8.x/client-graphql/examples/databases/update-document.md +++ b/docs/examples/1.8.x/client-graphql/examples/databases/update-document.md @@ -3,7 +3,7 @@ mutation { databaseId: "", collectionId: "", documentId: "", - data: "{}", + data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}", permissions: ["read("any")"], transactionId: "" ) { diff --git a/docs/examples/1.8.x/client-graphql/examples/databases/upsert-document.md b/docs/examples/1.8.x/client-graphql/examples/databases/upsert-document.md index d487c0d303..6d54d7ad10 100644 --- a/docs/examples/1.8.x/client-graphql/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/client-graphql/examples/databases/upsert-document.md @@ -3,7 +3,7 @@ mutation { databaseId: "", collectionId: "", documentId: "", - data: "{}", + data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}", permissions: ["read("any")"], transactionId: "" ) { diff --git a/docs/examples/1.8.x/client-graphql/examples/tablesdb/update-row.md b/docs/examples/1.8.x/client-graphql/examples/tablesdb/update-row.md index aa89e6ae01..a0fd284f95 100644 --- a/docs/examples/1.8.x/client-graphql/examples/tablesdb/update-row.md +++ b/docs/examples/1.8.x/client-graphql/examples/tablesdb/update-row.md @@ -3,7 +3,7 @@ mutation { databaseId: "", tableId: "", rowId: "", - data: "{}", + data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}", permissions: ["read("any")"], transactionId: "" ) { diff --git a/docs/examples/1.8.x/client-graphql/examples/tablesdb/upsert-row.md b/docs/examples/1.8.x/client-graphql/examples/tablesdb/upsert-row.md index 3fe36ee7f1..ed5309cab8 100644 --- a/docs/examples/1.8.x/client-graphql/examples/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/client-graphql/examples/tablesdb/upsert-row.md @@ -3,7 +3,7 @@ mutation { databaseId: "", tableId: "", rowId: "", - data: "{}", + data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}", permissions: ["read("any")"], transactionId: "" ) { diff --git a/docs/examples/1.8.x/client-react-native/examples/databases/update-document.md b/docs/examples/1.8.x/client-react-native/examples/databases/update-document.md index a82fa5238c..2be12b1acd 100644 --- a/docs/examples/1.8.x/client-react-native/examples/databases/update-document.md +++ b/docs/examples/1.8.x/client-react-native/examples/databases/update-document.md @@ -10,7 +10,13 @@ const result = await databases.updateDocument({ databaseId: '', collectionId: '', documentId: '', - data: {}, // optional + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }, // optional permissions: ["read("any")"], // optional transactionId: '' // optional }); diff --git a/docs/examples/1.8.x/client-react-native/examples/databases/upsert-document.md b/docs/examples/1.8.x/client-react-native/examples/databases/upsert-document.md index b6d2bed4d3..fcf1fb4820 100644 --- a/docs/examples/1.8.x/client-react-native/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/client-react-native/examples/databases/upsert-document.md @@ -10,7 +10,13 @@ const result = await databases.upsertDocument({ databaseId: '', collectionId: '', documentId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, // optional permissions: ["read("any")"], // optional transactionId: '' // optional }); diff --git a/docs/examples/1.8.x/client-react-native/examples/tablesdb/update-row.md b/docs/examples/1.8.x/client-react-native/examples/tablesdb/update-row.md index b53b927b3b..9ba5054f76 100644 --- a/docs/examples/1.8.x/client-react-native/examples/tablesdb/update-row.md +++ b/docs/examples/1.8.x/client-react-native/examples/tablesdb/update-row.md @@ -10,7 +10,13 @@ const result = await tablesDB.updateRow({ databaseId: '', tableId: '', rowId: '', - data: {}, // optional + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }, // optional permissions: ["read("any")"], // optional transactionId: '' // optional }); diff --git a/docs/examples/1.8.x/client-react-native/examples/tablesdb/upsert-row.md b/docs/examples/1.8.x/client-react-native/examples/tablesdb/upsert-row.md index 28909273a5..bea81ba413 100644 --- a/docs/examples/1.8.x/client-react-native/examples/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/client-react-native/examples/tablesdb/upsert-row.md @@ -10,7 +10,13 @@ const result = await tablesDB.upsertRow({ databaseId: '', tableId: '', rowId: '', - data: {}, // optional + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }, // optional permissions: ["read("any")"], // optional transactionId: '' // optional }); diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-anonymous-session.md b/docs/examples/1.8.x/client-rest/examples/account/create-anonymous-session.md index b62c82a6a8..ff7408fa94 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-anonymous-session.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-anonymous-session.md @@ -3,4 +3,6 @@ Host: cloud.appwrite.io Content-Type: application/json X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-email-password-session.md b/docs/examples/1.8.x/client-rest/examples/account/create-email-password-session.md index 1103d2ebfb..2cf4121b4f 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-email-password-session.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-email-password-session.md @@ -3,6 +3,8 @@ Host: cloud.appwrite.io Content-Type: application/json X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: { "email": "email@example.com", diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-email-token.md b/docs/examples/1.8.x/client-rest/examples/account/create-email-token.md index 552b724b9c..3e0d10827f 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-email-token.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-email-token.md @@ -3,6 +3,8 @@ Host: cloud.appwrite.io Content-Type: application/json X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: { "userId": "", diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-jwt.md b/docs/examples/1.8.x/client-rest/examples/account/create-jwt.md index 62a7dee7e9..52901d67a2 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-jwt.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-jwt.md @@ -3,4 +3,6 @@ Host: cloud.appwrite.io Content-Type: application/json X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-magic-url-token.md b/docs/examples/1.8.x/client-rest/examples/account/create-magic-url-token.md index 29d68bd0fa..4629afaac8 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-magic-url-token.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-magic-url-token.md @@ -3,6 +3,8 @@ Host: cloud.appwrite.io Content-Type: application/json X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: { "userId": "", diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-mfa-challenge.md b/docs/examples/1.8.x/client-rest/examples/account/create-mfa-challenge.md index e5a5b0ea05..0990fcb98d 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-mfa-challenge.md @@ -3,6 +3,8 @@ Host: cloud.appwrite.io Content-Type: application/json X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: { "factor": "email" diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-o-auth-2-session.md b/docs/examples/1.8.x/client-rest/examples/account/create-o-auth-2-session.md index d136722ec8..f99a3ecc76 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-o-auth-2-session.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-o-auth-2-session.md @@ -2,3 +2,5 @@ GET /v1/account/sessions/oauth2/{provider} HTTP/1.1 Host: cloud.appwrite.io X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-o-auth-2-token.md b/docs/examples/1.8.x/client-rest/examples/account/create-o-auth-2-token.md index 8a0cab614f..6d569682c1 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-o-auth-2-token.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-o-auth-2-token.md @@ -2,3 +2,5 @@ GET /v1/account/tokens/oauth2/{provider} HTTP/1.1 Host: cloud.appwrite.io X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-phone-token.md b/docs/examples/1.8.x/client-rest/examples/account/create-phone-token.md index 5127c8377a..c3cb75347f 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-phone-token.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-phone-token.md @@ -3,6 +3,8 @@ Host: cloud.appwrite.io Content-Type: application/json X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: { "userId": "", diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-session.md b/docs/examples/1.8.x/client-rest/examples/account/create-session.md index 0acc50cda6..810f816212 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create-session.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create-session.md @@ -3,6 +3,8 @@ Host: cloud.appwrite.io Content-Type: application/json X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: { "userId": "", diff --git a/docs/examples/1.8.x/client-rest/examples/account/create.md b/docs/examples/1.8.x/client-rest/examples/account/create.md index fa06bfcc1a..ef9967cab1 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create.md @@ -3,6 +3,8 @@ Host: cloud.appwrite.io Content-Type: application/json X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: { "userId": "", diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-magic-url-session.md b/docs/examples/1.8.x/client-rest/examples/account/update-magic-url-session.md index 1a82afbfcc..a1fe139a8b 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-magic-url-session.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-magic-url-session.md @@ -3,6 +3,8 @@ Host: cloud.appwrite.io Content-Type: application/json X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: { "userId": "", diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-phone-session.md b/docs/examples/1.8.x/client-rest/examples/account/update-phone-session.md index 54872eecd2..eb18a0960c 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-phone-session.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-phone-session.md @@ -3,6 +3,8 @@ Host: cloud.appwrite.io Content-Type: application/json X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: { "userId": "", diff --git a/docs/examples/1.8.x/client-rest/examples/databases/update-document.md b/docs/examples/1.8.x/client-rest/examples/databases/update-document.md index f39cabfec3..5eca403b5d 100644 --- a/docs/examples/1.8.x/client-rest/examples/databases/update-document.md +++ b/docs/examples/1.8.x/client-rest/examples/databases/update-document.md @@ -7,7 +7,13 @@ X-Appwrite-Session: X-Appwrite-JWT: { - "data": {}, + "data": { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }, "permissions": ["read(\"any\")"], "transactionId": "" } diff --git a/docs/examples/1.8.x/client-rest/examples/databases/upsert-document.md b/docs/examples/1.8.x/client-rest/examples/databases/upsert-document.md index c84d74a5ff..3e98bfd22f 100644 --- a/docs/examples/1.8.x/client-rest/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/client-rest/examples/databases/upsert-document.md @@ -7,7 +7,13 @@ X-Appwrite-Session: X-Appwrite-JWT: { - "data": {}, + "data": { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, "permissions": ["read(\"any\")"], "transactionId": "" } diff --git a/docs/examples/1.8.x/client-rest/examples/tablesdb/update-row.md b/docs/examples/1.8.x/client-rest/examples/tablesdb/update-row.md index 7249d93906..8f66400634 100644 --- a/docs/examples/1.8.x/client-rest/examples/tablesdb/update-row.md +++ b/docs/examples/1.8.x/client-rest/examples/tablesdb/update-row.md @@ -7,7 +7,13 @@ X-Appwrite-Session: X-Appwrite-JWT: { - "data": {}, + "data": { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }, "permissions": ["read(\"any\")"], "transactionId": "" } diff --git a/docs/examples/1.8.x/client-rest/examples/tablesdb/upsert-row.md b/docs/examples/1.8.x/client-rest/examples/tablesdb/upsert-row.md index 93f6236eca..3da7011225 100644 --- a/docs/examples/1.8.x/client-rest/examples/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/client-rest/examples/tablesdb/upsert-row.md @@ -7,7 +7,13 @@ X-Appwrite-Session: X-Appwrite-JWT: { - "data": {}, + "data": { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }, "permissions": ["read(\"any\")"], "transactionId": "" } diff --git a/docs/examples/1.8.x/client-web/examples/databases/update-document.md b/docs/examples/1.8.x/client-web/examples/databases/update-document.md index b5d90fd58d..8b1f8a8079 100644 --- a/docs/examples/1.8.x/client-web/examples/databases/update-document.md +++ b/docs/examples/1.8.x/client-web/examples/databases/update-document.md @@ -10,7 +10,13 @@ const result = await databases.updateDocument({ databaseId: '', collectionId: '', documentId: '', - data: {}, // optional + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }, // optional permissions: [Permission.read(Role.any())], // optional transactionId: '' // optional }); diff --git a/docs/examples/1.8.x/client-web/examples/databases/upsert-document.md b/docs/examples/1.8.x/client-web/examples/databases/upsert-document.md index 7af42d6337..5a9ade4086 100644 --- a/docs/examples/1.8.x/client-web/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/client-web/examples/databases/upsert-document.md @@ -10,7 +10,13 @@ const result = await databases.upsertDocument({ databaseId: '', collectionId: '', documentId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, // optional permissions: [Permission.read(Role.any())], // optional transactionId: '' // optional }); diff --git a/docs/examples/1.8.x/client-web/examples/tablesdb/update-row.md b/docs/examples/1.8.x/client-web/examples/tablesdb/update-row.md index cda74edb07..c0656d36b3 100644 --- a/docs/examples/1.8.x/client-web/examples/tablesdb/update-row.md +++ b/docs/examples/1.8.x/client-web/examples/tablesdb/update-row.md @@ -10,7 +10,13 @@ const result = await tablesDB.updateRow({ databaseId: '', tableId: '', rowId: '', - data: {}, // optional + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }, // optional permissions: [Permission.read(Role.any())], // optional transactionId: '' // optional }); diff --git a/docs/examples/1.8.x/client-web/examples/tablesdb/upsert-row.md b/docs/examples/1.8.x/client-web/examples/tablesdb/upsert-row.md index c0cb973c79..c4eb5c3c75 100644 --- a/docs/examples/1.8.x/client-web/examples/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/client-web/examples/tablesdb/upsert-row.md @@ -10,7 +10,13 @@ const result = await tablesDB.upsertRow({ databaseId: '', tableId: '', rowId: '', - data: {}, // optional + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }, // optional permissions: [Permission.read(Role.any())], // optional transactionId: '' // optional }); diff --git a/docs/examples/1.8.x/console-cli/examples/databases/upsert-document.md b/docs/examples/1.8.x/console-cli/examples/databases/upsert-document.md index 558ffeb5c4..8b1e138206 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/upsert-document.md @@ -1,5 +1,4 @@ appwrite databases upsert-document \ --database-id \ --collection-id \ - --document-id \ - --data '{ "key": "value" }' + --document-id diff --git a/docs/examples/1.8.x/console-web/examples/databases/update-document.md b/docs/examples/1.8.x/console-web/examples/databases/update-document.md index 5ab73b3210..30f9b4c39b 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/update-document.md +++ b/docs/examples/1.8.x/console-web/examples/databases/update-document.md @@ -10,7 +10,13 @@ const result = await databases.updateDocument({ databaseId: '', collectionId: '', documentId: '', - data: {}, // optional + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }, // optional permissions: [Permission.read(Role.any())], // optional transactionId: '' // optional }); diff --git a/docs/examples/1.8.x/console-web/examples/databases/update-documents.md b/docs/examples/1.8.x/console-web/examples/databases/update-documents.md index 9f9054bad2..da4043bbc1 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/update-documents.md +++ b/docs/examples/1.8.x/console-web/examples/databases/update-documents.md @@ -9,7 +9,13 @@ const databases = new Databases(client); const result = await databases.updateDocuments({ databaseId: '', collectionId: '', - data: {}, // optional + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }, // optional queries: [], // optional transactionId: '' // optional }); diff --git a/docs/examples/1.8.x/console-web/examples/databases/upsert-document.md b/docs/examples/1.8.x/console-web/examples/databases/upsert-document.md index 9c29601d67..03947bc418 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/console-web/examples/databases/upsert-document.md @@ -10,7 +10,13 @@ const result = await databases.upsertDocument({ databaseId: '', collectionId: '', documentId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, // optional permissions: [Permission.read(Role.any())], // optional transactionId: '' // optional }); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/update-row.md b/docs/examples/1.8.x/console-web/examples/tablesdb/update-row.md index 952ed62e64..b096cfa992 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/update-row.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update-row.md @@ -10,7 +10,13 @@ const result = await tablesDB.updateRow({ databaseId: '', tableId: '', rowId: '', - data: {}, // optional + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }, // optional permissions: [Permission.read(Role.any())], // optional transactionId: '' // optional }); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/update-rows.md b/docs/examples/1.8.x/console-web/examples/tablesdb/update-rows.md index 7601955b8b..699ab5dfef 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/update-rows.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update-rows.md @@ -9,7 +9,13 @@ const tablesDB = new TablesDB(client); const result = await tablesDB.updateRows({ databaseId: '', tableId: '', - data: {}, // optional + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }, // optional queries: [], // optional transactionId: '' // optional }); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/upsert-row.md b/docs/examples/1.8.x/console-web/examples/tablesdb/upsert-row.md index dee8dd0a6b..0c1a7ea2b6 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/upsert-row.md @@ -10,7 +10,13 @@ const result = await tablesDB.upsertRow({ databaseId: '', tableId: '', rowId: '', - data: {}, // optional + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }, // optional permissions: [Permission.read(Role.any())], // optional transactionId: '' // optional }); diff --git a/docs/examples/1.8.x/server-dart/examples/account/create-anonymous-session.md b/docs/examples/1.8.x/server-dart/examples/account/create-anonymous-session.md index 7b1cc08304..b12451d11a 100644 --- a/docs/examples/1.8.x/server-dart/examples/account/create-anonymous-session.md +++ b/docs/examples/1.8.x/server-dart/examples/account/create-anonymous-session.md @@ -2,7 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.8.x/server-dart/examples/account/create-email-password-session.md b/docs/examples/1.8.x/server-dart/examples/account/create-email-password-session.md index 2305367d94..63200d506c 100644 --- a/docs/examples/1.8.x/server-dart/examples/account/create-email-password-session.md +++ b/docs/examples/1.8.x/server-dart/examples/account/create-email-password-session.md @@ -2,7 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.8.x/server-dart/examples/account/create-email-token.md b/docs/examples/1.8.x/server-dart/examples/account/create-email-token.md index e9696f92bf..348b8bb157 100644 --- a/docs/examples/1.8.x/server-dart/examples/account/create-email-token.md +++ b/docs/examples/1.8.x/server-dart/examples/account/create-email-token.md @@ -2,7 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.8.x/server-dart/examples/account/create-jwt.md b/docs/examples/1.8.x/server-dart/examples/account/create-jwt.md index 4288c71ce1..5b2945e8ba 100644 --- a/docs/examples/1.8.x/server-dart/examples/account/create-jwt.md +++ b/docs/examples/1.8.x/server-dart/examples/account/create-jwt.md @@ -2,7 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.8.x/server-dart/examples/account/create-magic-url-token.md b/docs/examples/1.8.x/server-dart/examples/account/create-magic-url-token.md index 791b9cbd4f..9aa4c5e502 100644 --- a/docs/examples/1.8.x/server-dart/examples/account/create-magic-url-token.md +++ b/docs/examples/1.8.x/server-dart/examples/account/create-magic-url-token.md @@ -2,7 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.8.x/server-dart/examples/account/create-mfa-challenge.md b/docs/examples/1.8.x/server-dart/examples/account/create-mfa-challenge.md index 5df3abadad..7696794b35 100644 --- a/docs/examples/1.8.x/server-dart/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/server-dart/examples/account/create-mfa-challenge.md @@ -2,7 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.8.x/server-dart/examples/account/create-o-auth-2-token.md b/docs/examples/1.8.x/server-dart/examples/account/create-o-auth-2-token.md index 4a26a9fd7f..42c4ed85fa 100644 --- a/docs/examples/1.8.x/server-dart/examples/account/create-o-auth-2-token.md +++ b/docs/examples/1.8.x/server-dart/examples/account/create-o-auth-2-token.md @@ -2,7 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.8.x/server-dart/examples/account/create-phone-token.md b/docs/examples/1.8.x/server-dart/examples/account/create-phone-token.md index 7011b3cf48..1ea7532fbd 100644 --- a/docs/examples/1.8.x/server-dart/examples/account/create-phone-token.md +++ b/docs/examples/1.8.x/server-dart/examples/account/create-phone-token.md @@ -2,7 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.8.x/server-dart/examples/account/create-session.md b/docs/examples/1.8.x/server-dart/examples/account/create-session.md index 1e56fc71bb..c23e5c94bb 100644 --- a/docs/examples/1.8.x/server-dart/examples/account/create-session.md +++ b/docs/examples/1.8.x/server-dart/examples/account/create-session.md @@ -2,7 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.8.x/server-dart/examples/account/create.md b/docs/examples/1.8.x/server-dart/examples/account/create.md index f0384f46f4..21af6db4c8 100644 --- a/docs/examples/1.8.x/server-dart/examples/account/create.md +++ b/docs/examples/1.8.x/server-dart/examples/account/create.md @@ -2,7 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.8.x/server-dart/examples/account/update-magic-url-session.md b/docs/examples/1.8.x/server-dart/examples/account/update-magic-url-session.md index 475e464ff0..c18efc60b8 100644 --- a/docs/examples/1.8.x/server-dart/examples/account/update-magic-url-session.md +++ b/docs/examples/1.8.x/server-dart/examples/account/update-magic-url-session.md @@ -2,7 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.8.x/server-dart/examples/account/update-phone-session.md b/docs/examples/1.8.x/server-dart/examples/account/update-phone-session.md index 046dd0a701..47176c4d97 100644 --- a/docs/examples/1.8.x/server-dart/examples/account/update-phone-session.md +++ b/docs/examples/1.8.x/server-dart/examples/account/update-phone-session.md @@ -2,7 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/create-collection.md b/docs/examples/1.8.x/server-dart/examples/databases/create-collection.md index 51a7c12626..e131269f6f 100644 --- a/docs/examples/1.8.x/server-dart/examples/databases/create-collection.md +++ b/docs/examples/1.8.x/server-dart/examples/databases/create-collection.md @@ -16,4 +16,6 @@ Collection result = await databases.createCollection( permissions: [Permission.read(Role.any())], // (optional) documentSecurity: false, // (optional) enabled: false, // (optional) + attributes: [], // (optional) + indexes: [], // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/update-document.md b/docs/examples/1.8.x/server-dart/examples/databases/update-document.md index b48041e228..b193cdffc1 100644 --- a/docs/examples/1.8.x/server-dart/examples/databases/update-document.md +++ b/docs/examples/1.8.x/server-dart/examples/databases/update-document.md @@ -13,7 +13,13 @@ Document result = await databases.updateDocument( databaseId: '', collectionId: '', documentId: '', - data: {}, // (optional) + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }, // (optional) permissions: [Permission.read(Role.any())], // (optional) transactionId: '', // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/update-documents.md b/docs/examples/1.8.x/server-dart/examples/databases/update-documents.md index babc2d96fb..cf3be35fda 100644 --- a/docs/examples/1.8.x/server-dart/examples/databases/update-documents.md +++ b/docs/examples/1.8.x/server-dart/examples/databases/update-documents.md @@ -10,7 +10,13 @@ Databases databases = Databases(client); DocumentList result = await databases.updateDocuments( databaseId: '', collectionId: '', - data: {}, // (optional) + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }, // (optional) queries: [], // (optional) transactionId: '', // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-dart/examples/databases/upsert-document.md index 95a6d9d4a4..6d2f832512 100644 --- a/docs/examples/1.8.x/server-dart/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-dart/examples/databases/upsert-document.md @@ -13,7 +13,13 @@ Document result = await databases.upsertDocument( databaseId: '', collectionId: '', documentId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, // (optional) permissions: [Permission.read(Role.any())], // (optional) transactionId: '', // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/create-table.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-table.md index ee6776f08c..4a3c58d2b9 100644 --- a/docs/examples/1.8.x/server-dart/examples/tablesdb/create-table.md +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-table.md @@ -16,4 +16,6 @@ Table result = await tablesDB.createTable( permissions: [Permission.read(Role.any())], // (optional) rowSecurity: false, // (optional) enabled: false, // (optional) + columns: [], // (optional) + indexes: [], // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/update-row.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-row.md index 02ba458c0f..a7906d9b08 100644 --- a/docs/examples/1.8.x/server-dart/examples/tablesdb/update-row.md +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-row.md @@ -13,7 +13,13 @@ Row result = await tablesDB.updateRow( databaseId: '', tableId: '', rowId: '', - data: {}, // (optional) + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }, // (optional) permissions: [Permission.read(Role.any())], // (optional) transactionId: '', // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/update-rows.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-rows.md index a7c0d61b45..4e3e42dbcb 100644 --- a/docs/examples/1.8.x/server-dart/examples/tablesdb/update-rows.md +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-rows.md @@ -10,7 +10,13 @@ TablesDB tablesDB = TablesDB(client); RowList result = await tablesDB.updateRows( databaseId: '', tableId: '', - data: {}, // (optional) + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }, // (optional) queries: [], // (optional) transactionId: '', // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/upsert-row.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/upsert-row.md index 72f1ae2064..1fd5489971 100644 --- a/docs/examples/1.8.x/server-dart/examples/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/upsert-row.md @@ -13,7 +13,13 @@ Row result = await tablesDB.upsertRow( databaseId: '', tableId: '', rowId: '', - data: {}, // (optional) + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }, // (optional) permissions: [Permission.read(Role.any())], // (optional) transactionId: '', // (optional) ); diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/create-anonymous-session.md b/docs/examples/1.8.x/server-dotnet/examples/account/create-anonymous-session.md index fc807aa4e5..087afeee81 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/account/create-anonymous-session.md +++ b/docs/examples/1.8.x/server-dotnet/examples/account/create-anonymous-session.md @@ -4,7 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject(""); // Your project ID + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/create-email-password-session.md b/docs/examples/1.8.x/server-dotnet/examples/account/create-email-password-session.md index abf5a41317..8e62f30d7e 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/account/create-email-password-session.md +++ b/docs/examples/1.8.x/server-dotnet/examples/account/create-email-password-session.md @@ -4,7 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject(""); // Your project ID + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/create-email-token.md b/docs/examples/1.8.x/server-dotnet/examples/account/create-email-token.md index 69862feed0..0e867a00d0 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/account/create-email-token.md +++ b/docs/examples/1.8.x/server-dotnet/examples/account/create-email-token.md @@ -4,7 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject(""); // Your project ID + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/create-jwt.md b/docs/examples/1.8.x/server-dotnet/examples/account/create-jwt.md index 423cbed2b3..9572d69014 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/account/create-jwt.md +++ b/docs/examples/1.8.x/server-dotnet/examples/account/create-jwt.md @@ -4,7 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject(""); // Your project ID + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/create-magic-url-token.md b/docs/examples/1.8.x/server-dotnet/examples/account/create-magic-url-token.md index 21bcef6bed..9bba5fcf69 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/account/create-magic-url-token.md +++ b/docs/examples/1.8.x/server-dotnet/examples/account/create-magic-url-token.md @@ -4,7 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject(""); // Your project ID + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/create-mfa-challenge.md b/docs/examples/1.8.x/server-dotnet/examples/account/create-mfa-challenge.md index 32497b4ec3..0d7a20c7f6 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/server-dotnet/examples/account/create-mfa-challenge.md @@ -5,7 +5,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject(""); // Your project ID + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/create-o-auth-2-token.md b/docs/examples/1.8.x/server-dotnet/examples/account/create-o-auth-2-token.md index 5b405449b1..a5e15c086d 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/account/create-o-auth-2-token.md +++ b/docs/examples/1.8.x/server-dotnet/examples/account/create-o-auth-2-token.md @@ -5,7 +5,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject(""); // Your project ID + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/create-phone-token.md b/docs/examples/1.8.x/server-dotnet/examples/account/create-phone-token.md index 0d17f5ecee..02f86ee31f 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/account/create-phone-token.md +++ b/docs/examples/1.8.x/server-dotnet/examples/account/create-phone-token.md @@ -4,7 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject(""); // Your project ID + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/create-session.md b/docs/examples/1.8.x/server-dotnet/examples/account/create-session.md index 2da46ce62b..e682599e21 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/account/create-session.md +++ b/docs/examples/1.8.x/server-dotnet/examples/account/create-session.md @@ -4,7 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject(""); // Your project ID + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/create.md b/docs/examples/1.8.x/server-dotnet/examples/account/create.md index 83c1d54251..d3d2ecc62d 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/account/create.md +++ b/docs/examples/1.8.x/server-dotnet/examples/account/create.md @@ -4,7 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject(""); // Your project ID + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/update-magic-url-session.md b/docs/examples/1.8.x/server-dotnet/examples/account/update-magic-url-session.md index a8d8312e18..b1d729b405 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/account/update-magic-url-session.md +++ b/docs/examples/1.8.x/server-dotnet/examples/account/update-magic-url-session.md @@ -4,7 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject(""); // Your project ID + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/update-phone-session.md b/docs/examples/1.8.x/server-dotnet/examples/account/update-phone-session.md index 2f8b091999..e5dbef1a39 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/account/update-phone-session.md +++ b/docs/examples/1.8.x/server-dotnet/examples/account/update-phone-session.md @@ -4,7 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject(""); // Your project ID + .SetProject("") // Your project ID + .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/create-collection.md b/docs/examples/1.8.x/server-dotnet/examples/databases/create-collection.md index bfb24faf82..a4cbf7c4ed 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/databases/create-collection.md +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/create-collection.md @@ -15,5 +15,7 @@ Collection result = await databases.CreateCollection( name: "", permissions: new List { Permission.Read(Role.Any()) }, // optional documentSecurity: false, // optional - enabled: false // optional + enabled: false, // optional + attributes: new List(), // optional + indexes: new List() // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/update-document.md b/docs/examples/1.8.x/server-dotnet/examples/databases/update-document.md index 85f3ba5d2f..8bebfdfd8e 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/databases/update-document.md +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/update-document.md @@ -13,7 +13,13 @@ Document result = await databases.UpdateDocument( databaseId: "", collectionId: "", documentId: "", - data: [object], // optional + data: new { + username = "walter.obrien", + email = "walter.obrien@example.com", + fullName = "Walter O'Brien", + age = 33, + isAdmin = false + }, // optional permissions: new List { Permission.Read(Role.Any()) }, // optional transactionId: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/update-documents.md b/docs/examples/1.8.x/server-dotnet/examples/databases/update-documents.md index 077ec04da6..d7788b4387 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/databases/update-documents.md +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/update-documents.md @@ -12,7 +12,13 @@ Databases databases = new Databases(client); DocumentList result = await databases.UpdateDocuments( databaseId: "", collectionId: "", - data: [object], // optional + data: new { + username = "walter.obrien", + email = "walter.obrien@example.com", + fullName = "Walter O'Brien", + age = 33, + isAdmin = false + }, // optional queries: new List(), // optional transactionId: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-dotnet/examples/databases/upsert-document.md index 9ebcafe87f..c54bcfc54f 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/upsert-document.md @@ -13,7 +13,13 @@ Document result = await databases.UpsertDocument( databaseId: "", collectionId: "", documentId: "", - data: [object], + data: new { + username = "walter.obrien", + email = "walter.obrien@example.com", + fullName = "Walter O'Brien", + age = 30, + isAdmin = false + }, // optional permissions: new List { Permission.Read(Role.Any()) }, // optional transactionId: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-table.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-table.md index 0df89acc12..7b622d1d58 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-table.md +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-table.md @@ -15,5 +15,7 @@ Table result = await tablesDB.CreateTable( name: "", permissions: new List { Permission.Read(Role.Any()) }, // optional rowSecurity: false, // optional - enabled: false // optional + enabled: false, // optional + columns: new List(), // optional + indexes: new List() // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-row.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-row.md index 328469923b..31dfd9dd89 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-row.md +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-row.md @@ -13,7 +13,13 @@ Row result = await tablesDB.UpdateRow( databaseId: "", tableId: "", rowId: "", - data: [object], // optional + data: new { + username = "walter.obrien", + email = "walter.obrien@example.com", + fullName = "Walter O'Brien", + age = 33, + isAdmin = false + }, // optional permissions: new List { Permission.Read(Role.Any()) }, // optional transactionId: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-rows.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-rows.md index 368977a0cc..ddd88e041e 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-rows.md +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-rows.md @@ -12,7 +12,13 @@ TablesDB tablesDB = new TablesDB(client); RowList result = await tablesDB.UpdateRows( databaseId: "", tableId: "", - data: [object], // optional + data: new { + username = "walter.obrien", + email = "walter.obrien@example.com", + fullName = "Walter O'Brien", + age = 33, + isAdmin = false + }, // optional queries: new List(), // optional transactionId: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/upsert-row.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/upsert-row.md index 88ef7146c2..f4860bc9f5 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/upsert-row.md @@ -13,7 +13,13 @@ Row result = await tablesDB.UpsertRow( databaseId: "", tableId: "", rowId: "", - data: [object], // optional + data: new { + username = "walter.obrien", + email = "walter.obrien@example.com", + fullName = "Walter O'Brien", + age = 33, + isAdmin = false + }, // optional permissions: new List { Permission.Read(Role.Any()) }, // optional transactionId: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-go/examples/account/create-anonymous-session.md b/docs/examples/1.8.x/server-go/examples/account/create-anonymous-session.md index c2f23a5b2c..b6da8a7467 100644 --- a/docs/examples/1.8.x/server-go/examples/account/create-anonymous-session.md +++ b/docs/examples/1.8.x/server-go/examples/account/create-anonymous-session.md @@ -9,6 +9,7 @@ import ( client := client.New( client.WithEndpoint("https://.cloud.appwrite.io/v1") client.WithProject("") + client.WithSession("") ) service := account.New(client) diff --git a/docs/examples/1.8.x/server-go/examples/account/create-email-password-session.md b/docs/examples/1.8.x/server-go/examples/account/create-email-password-session.md index 66a55b953e..7067b8a073 100644 --- a/docs/examples/1.8.x/server-go/examples/account/create-email-password-session.md +++ b/docs/examples/1.8.x/server-go/examples/account/create-email-password-session.md @@ -9,6 +9,7 @@ import ( client := client.New( client.WithEndpoint("https://.cloud.appwrite.io/v1") client.WithProject("") + client.WithSession("") ) service := account.New(client) diff --git a/docs/examples/1.8.x/server-go/examples/account/create-email-token.md b/docs/examples/1.8.x/server-go/examples/account/create-email-token.md index b2a1aac498..466d1c839a 100644 --- a/docs/examples/1.8.x/server-go/examples/account/create-email-token.md +++ b/docs/examples/1.8.x/server-go/examples/account/create-email-token.md @@ -9,6 +9,7 @@ import ( client := client.New( client.WithEndpoint("https://.cloud.appwrite.io/v1") client.WithProject("") + client.WithSession("") ) service := account.New(client) diff --git a/docs/examples/1.8.x/server-go/examples/account/create-jwt.md b/docs/examples/1.8.x/server-go/examples/account/create-jwt.md index 153c70d9fc..b3adb79574 100644 --- a/docs/examples/1.8.x/server-go/examples/account/create-jwt.md +++ b/docs/examples/1.8.x/server-go/examples/account/create-jwt.md @@ -9,6 +9,7 @@ import ( client := client.New( client.WithEndpoint("https://.cloud.appwrite.io/v1") client.WithProject("") + client.WithSession("") ) service := account.New(client) diff --git a/docs/examples/1.8.x/server-go/examples/account/create-magic-url-token.md b/docs/examples/1.8.x/server-go/examples/account/create-magic-url-token.md index b36a2d99b1..e1fe889732 100644 --- a/docs/examples/1.8.x/server-go/examples/account/create-magic-url-token.md +++ b/docs/examples/1.8.x/server-go/examples/account/create-magic-url-token.md @@ -9,6 +9,7 @@ import ( client := client.New( client.WithEndpoint("https://.cloud.appwrite.io/v1") client.WithProject("") + client.WithSession("") ) service := account.New(client) diff --git a/docs/examples/1.8.x/server-go/examples/account/create-mfa-challenge.md b/docs/examples/1.8.x/server-go/examples/account/create-mfa-challenge.md index 0ae3262568..7eb816c829 100644 --- a/docs/examples/1.8.x/server-go/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/server-go/examples/account/create-mfa-challenge.md @@ -9,6 +9,7 @@ import ( client := client.New( client.WithEndpoint("https://.cloud.appwrite.io/v1") client.WithProject("") + client.WithSession("") ) service := account.New(client) diff --git a/docs/examples/1.8.x/server-go/examples/account/create-o-auth-2-token.md b/docs/examples/1.8.x/server-go/examples/account/create-o-auth-2-token.md index 19b9258f00..48ff13ee70 100644 --- a/docs/examples/1.8.x/server-go/examples/account/create-o-auth-2-token.md +++ b/docs/examples/1.8.x/server-go/examples/account/create-o-auth-2-token.md @@ -9,6 +9,7 @@ import ( client := client.New( client.WithEndpoint("https://.cloud.appwrite.io/v1") client.WithProject("") + client.WithSession("") ) service := account.New(client) diff --git a/docs/examples/1.8.x/server-go/examples/account/create-phone-token.md b/docs/examples/1.8.x/server-go/examples/account/create-phone-token.md index 97737e5646..043ef3c8e3 100644 --- a/docs/examples/1.8.x/server-go/examples/account/create-phone-token.md +++ b/docs/examples/1.8.x/server-go/examples/account/create-phone-token.md @@ -9,6 +9,7 @@ import ( client := client.New( client.WithEndpoint("https://.cloud.appwrite.io/v1") client.WithProject("") + client.WithSession("") ) service := account.New(client) diff --git a/docs/examples/1.8.x/server-go/examples/account/create-session.md b/docs/examples/1.8.x/server-go/examples/account/create-session.md index fb0b9cbfe4..3c24783b3c 100644 --- a/docs/examples/1.8.x/server-go/examples/account/create-session.md +++ b/docs/examples/1.8.x/server-go/examples/account/create-session.md @@ -9,6 +9,7 @@ import ( client := client.New( client.WithEndpoint("https://.cloud.appwrite.io/v1") client.WithProject("") + client.WithSession("") ) service := account.New(client) diff --git a/docs/examples/1.8.x/server-go/examples/account/create.md b/docs/examples/1.8.x/server-go/examples/account/create.md index 5e04847860..ebb5001509 100644 --- a/docs/examples/1.8.x/server-go/examples/account/create.md +++ b/docs/examples/1.8.x/server-go/examples/account/create.md @@ -9,6 +9,7 @@ import ( client := client.New( client.WithEndpoint("https://.cloud.appwrite.io/v1") client.WithProject("") + client.WithSession("") ) service := account.New(client) diff --git a/docs/examples/1.8.x/server-go/examples/account/update-magic-url-session.md b/docs/examples/1.8.x/server-go/examples/account/update-magic-url-session.md index 9f799c511f..0fc951b346 100644 --- a/docs/examples/1.8.x/server-go/examples/account/update-magic-url-session.md +++ b/docs/examples/1.8.x/server-go/examples/account/update-magic-url-session.md @@ -9,6 +9,7 @@ import ( client := client.New( client.WithEndpoint("https://.cloud.appwrite.io/v1") client.WithProject("") + client.WithSession("") ) service := account.New(client) diff --git a/docs/examples/1.8.x/server-go/examples/account/update-phone-session.md b/docs/examples/1.8.x/server-go/examples/account/update-phone-session.md index 5af46b840b..6c7ee57b1d 100644 --- a/docs/examples/1.8.x/server-go/examples/account/update-phone-session.md +++ b/docs/examples/1.8.x/server-go/examples/account/update-phone-session.md @@ -9,6 +9,7 @@ import ( client := client.New( client.WithEndpoint("https://.cloud.appwrite.io/v1") client.WithProject("") + client.WithSession("") ) service := account.New(client) diff --git a/docs/examples/1.8.x/server-go/examples/avatars/get-screenshot.md b/docs/examples/1.8.x/server-go/examples/avatars/get-screenshot.md index 9191ad8875..b08534669e 100644 --- a/docs/examples/1.8.x/server-go/examples/avatars/get-screenshot.md +++ b/docs/examples/1.8.x/server-go/examples/avatars/get-screenshot.md @@ -27,7 +27,7 @@ response, error := service.GetScreenshot( avatars.WithGetScreenshotUserAgent("Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15"), avatars.WithGetScreenshotFullpage(true), avatars.WithGetScreenshotLocale("en-US"), - avatars.WithGetScreenshotTimezone("America/New_York"), + avatars.WithGetScreenshotTimezone("america/new_york"), avatars.WithGetScreenshotLatitude(37.7749), avatars.WithGetScreenshotLongitude(-122.4194), avatars.WithGetScreenshotAccuracy(100), diff --git a/docs/examples/1.8.x/server-go/examples/databases/create-collection.md b/docs/examples/1.8.x/server-go/examples/databases/create-collection.md index 4e4e9f764c..5cad00a6a5 100644 --- a/docs/examples/1.8.x/server-go/examples/databases/create-collection.md +++ b/docs/examples/1.8.x/server-go/examples/databases/create-collection.md @@ -21,4 +21,6 @@ response, error := service.CreateCollection( databases.WithCreateCollectionPermissions(interface{}{"read("any")"}), databases.WithCreateCollectionDocumentSecurity(false), databases.WithCreateCollectionEnabled(false), + databases.WithCreateCollectionAttributes([]interface{}{}), + databases.WithCreateCollectionIndexes([]interface{}{}), ) diff --git a/docs/examples/1.8.x/server-go/examples/databases/update-document.md b/docs/examples/1.8.x/server-go/examples/databases/update-document.md index 314385d6a8..51359e88d8 100644 --- a/docs/examples/1.8.x/server-go/examples/databases/update-document.md +++ b/docs/examples/1.8.x/server-go/examples/databases/update-document.md @@ -18,7 +18,13 @@ response, error := service.UpdateDocument( "", "", "", - databases.WithUpdateDocumentData(map[string]interface{}{}), + databases.WithUpdateDocumentData(map[string]interface{}{ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }), databases.WithUpdateDocumentPermissions(interface{}{"read("any")"}), databases.WithUpdateDocumentTransactionId(""), ) diff --git a/docs/examples/1.8.x/server-go/examples/databases/update-documents.md b/docs/examples/1.8.x/server-go/examples/databases/update-documents.md index 729656affd..1e1043c67d 100644 --- a/docs/examples/1.8.x/server-go/examples/databases/update-documents.md +++ b/docs/examples/1.8.x/server-go/examples/databases/update-documents.md @@ -17,7 +17,13 @@ service := databases.New(client) response, error := service.UpdateDocuments( "", "", - databases.WithUpdateDocumentsData(map[string]interface{}{}), + databases.WithUpdateDocumentsData(map[string]interface{}{ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }), databases.WithUpdateDocumentsQueries([]interface{}{}), databases.WithUpdateDocumentsTransactionId(""), ) diff --git a/docs/examples/1.8.x/server-go/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-go/examples/databases/upsert-document.md index 471c39185b..95f1c4b6ec 100644 --- a/docs/examples/1.8.x/server-go/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-go/examples/databases/upsert-document.md @@ -18,7 +18,13 @@ response, error := service.UpsertDocument( "", "", "", - map[string]interface{}{}, + databases.WithUpsertDocumentData(map[string]interface{}{ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }), databases.WithUpsertDocumentPermissions(interface{}{"read("any")"}), databases.WithUpsertDocumentTransactionId(""), ) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/create-table.md b/docs/examples/1.8.x/server-go/examples/tablesdb/create-table.md index c454c08d6e..c5e1826fe6 100644 --- a/docs/examples/1.8.x/server-go/examples/tablesdb/create-table.md +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/create-table.md @@ -21,4 +21,6 @@ response, error := service.CreateTable( tablesdb.WithCreateTablePermissions(interface{}{"read("any")"}), tablesdb.WithCreateTableRowSecurity(false), tablesdb.WithCreateTableEnabled(false), + tablesdb.WithCreateTableColumns([]interface{}{}), + tablesdb.WithCreateTableIndexes([]interface{}{}), ) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/update-row.md b/docs/examples/1.8.x/server-go/examples/tablesdb/update-row.md index 12ea0b10a4..212be5b298 100644 --- a/docs/examples/1.8.x/server-go/examples/tablesdb/update-row.md +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/update-row.md @@ -18,7 +18,13 @@ response, error := service.UpdateRow( "", "", "", - tablesdb.WithUpdateRowData(map[string]interface{}{}), + tablesdb.WithUpdateRowData(map[string]interface{}{ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }), tablesdb.WithUpdateRowPermissions(interface{}{"read("any")"}), tablesdb.WithUpdateRowTransactionId(""), ) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/update-rows.md b/docs/examples/1.8.x/server-go/examples/tablesdb/update-rows.md index ff6a81e57c..706abaeee4 100644 --- a/docs/examples/1.8.x/server-go/examples/tablesdb/update-rows.md +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/update-rows.md @@ -17,7 +17,13 @@ service := tablesdb.New(client) response, error := service.UpdateRows( "", "", - tablesdb.WithUpdateRowsData(map[string]interface{}{}), + tablesdb.WithUpdateRowsData(map[string]interface{}{ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }), tablesdb.WithUpdateRowsQueries([]interface{}{}), tablesdb.WithUpdateRowsTransactionId(""), ) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/upsert-row.md b/docs/examples/1.8.x/server-go/examples/tablesdb/upsert-row.md index 4caa5415e9..097b355083 100644 --- a/docs/examples/1.8.x/server-go/examples/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/upsert-row.md @@ -18,7 +18,13 @@ response, error := service.UpsertRow( "", "", "", - tablesdb.WithUpsertRowData(map[string]interface{}{}), + tablesdb.WithUpsertRowData(map[string]interface{}{ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }), tablesdb.WithUpsertRowPermissions(interface{}{"read("any")"}), tablesdb.WithUpsertRowTransactionId(""), ) diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/create-collection.md b/docs/examples/1.8.x/server-graphql/examples/databases/create-collection.md index 7ee68b41c7..429c25cd4a 100644 --- a/docs/examples/1.8.x/server-graphql/examples/databases/create-collection.md +++ b/docs/examples/1.8.x/server-graphql/examples/databases/create-collection.md @@ -5,7 +5,9 @@ mutation { name: "", permissions: ["read("any")"], documentSecurity: false, - enabled: false + enabled: false, + attributes: [], + indexes: [] ) { _id _createdAt diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/update-document.md b/docs/examples/1.8.x/server-graphql/examples/databases/update-document.md index cf43d9eed0..056a5bed4e 100644 --- a/docs/examples/1.8.x/server-graphql/examples/databases/update-document.md +++ b/docs/examples/1.8.x/server-graphql/examples/databases/update-document.md @@ -3,7 +3,7 @@ mutation { databaseId: "", collectionId: "", documentId: "", - data: "{}", + data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}", permissions: ["read("any")"], transactionId: "" ) { diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/update-documents.md b/docs/examples/1.8.x/server-graphql/examples/databases/update-documents.md index d6eb18de2a..45913eb005 100644 --- a/docs/examples/1.8.x/server-graphql/examples/databases/update-documents.md +++ b/docs/examples/1.8.x/server-graphql/examples/databases/update-documents.md @@ -2,7 +2,7 @@ mutation { databasesUpdateDocuments( databaseId: "", collectionId: "", - data: "{}", + data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}", queries: [], transactionId: "" ) { diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-graphql/examples/databases/upsert-document.md index d487c0d303..6d54d7ad10 100644 --- a/docs/examples/1.8.x/server-graphql/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-graphql/examples/databases/upsert-document.md @@ -3,7 +3,7 @@ mutation { databaseId: "", collectionId: "", documentId: "", - data: "{}", + data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}", permissions: ["read("any")"], transactionId: "" ) { diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-table.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-table.md index 61203b9359..1fb339f0d3 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-table.md +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-table.md @@ -5,7 +5,9 @@ mutation { name: "", permissions: ["read("any")"], rowSecurity: false, - enabled: false + enabled: false, + columns: [], + indexes: [] ) { _id _createdAt diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-row.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-row.md index aa89e6ae01..a0fd284f95 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-row.md +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-row.md @@ -3,7 +3,7 @@ mutation { databaseId: "", tableId: "", rowId: "", - data: "{}", + data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}", permissions: ["read("any")"], transactionId: "" ) { diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-rows.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-rows.md index 5a6203a4dc..1b77bda3fd 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-rows.md +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-rows.md @@ -2,7 +2,7 @@ mutation { tablesDBUpdateRows( databaseId: "", tableId: "", - data: "{}", + data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}", queries: [], transactionId: "" ) { diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/upsert-row.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/upsert-row.md index 3fe36ee7f1..ed5309cab8 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/upsert-row.md @@ -3,7 +3,7 @@ mutation { databaseId: "", tableId: "", rowId: "", - data: "{}", + data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}", permissions: ["read("any")"], transactionId: "" ) { diff --git a/docs/examples/1.8.x/server-kotlin/java/account/create-anonymous-session.md b/docs/examples/1.8.x/server-kotlin/java/account/create-anonymous-session.md index d65c20a600..07e4f387f8 100644 --- a/docs/examples/1.8.x/server-kotlin/java/account/create-anonymous-session.md +++ b/docs/examples/1.8.x/server-kotlin/java/account/create-anonymous-session.md @@ -4,7 +4,8 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.8.x/server-kotlin/java/account/create-email-password-session.md b/docs/examples/1.8.x/server-kotlin/java/account/create-email-password-session.md index 633931089f..aaf282ebc3 100644 --- a/docs/examples/1.8.x/server-kotlin/java/account/create-email-password-session.md +++ b/docs/examples/1.8.x/server-kotlin/java/account/create-email-password-session.md @@ -4,7 +4,8 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.8.x/server-kotlin/java/account/create-email-token.md b/docs/examples/1.8.x/server-kotlin/java/account/create-email-token.md index 7a6a0d7fea..940f8d60e4 100644 --- a/docs/examples/1.8.x/server-kotlin/java/account/create-email-token.md +++ b/docs/examples/1.8.x/server-kotlin/java/account/create-email-token.md @@ -4,7 +4,8 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.8.x/server-kotlin/java/account/create-jwt.md b/docs/examples/1.8.x/server-kotlin/java/account/create-jwt.md index 3756edee25..5930854bd2 100644 --- a/docs/examples/1.8.x/server-kotlin/java/account/create-jwt.md +++ b/docs/examples/1.8.x/server-kotlin/java/account/create-jwt.md @@ -4,7 +4,8 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.8.x/server-kotlin/java/account/create-magic-url-token.md b/docs/examples/1.8.x/server-kotlin/java/account/create-magic-url-token.md index df021f9568..bb4cc7a09f 100644 --- a/docs/examples/1.8.x/server-kotlin/java/account/create-magic-url-token.md +++ b/docs/examples/1.8.x/server-kotlin/java/account/create-magic-url-token.md @@ -4,7 +4,8 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.8.x/server-kotlin/java/account/create-mfa-challenge.md b/docs/examples/1.8.x/server-kotlin/java/account/create-mfa-challenge.md index 5c048cbace..0463633669 100644 --- a/docs/examples/1.8.x/server-kotlin/java/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/server-kotlin/java/account/create-mfa-challenge.md @@ -5,7 +5,8 @@ import io.appwrite.enums.AuthenticationFactor; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.8.x/server-kotlin/java/account/create-o-auth-2-token.md b/docs/examples/1.8.x/server-kotlin/java/account/create-o-auth-2-token.md index 376d943533..3af15e0689 100644 --- a/docs/examples/1.8.x/server-kotlin/java/account/create-o-auth-2-token.md +++ b/docs/examples/1.8.x/server-kotlin/java/account/create-o-auth-2-token.md @@ -5,7 +5,8 @@ import io.appwrite.enums.OAuthProvider; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.8.x/server-kotlin/java/account/create-phone-token.md b/docs/examples/1.8.x/server-kotlin/java/account/create-phone-token.md index 14fb812687..cdec5d54ac 100644 --- a/docs/examples/1.8.x/server-kotlin/java/account/create-phone-token.md +++ b/docs/examples/1.8.x/server-kotlin/java/account/create-phone-token.md @@ -4,7 +4,8 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.8.x/server-kotlin/java/account/create-session.md b/docs/examples/1.8.x/server-kotlin/java/account/create-session.md index 5bcdf99059..295016494a 100644 --- a/docs/examples/1.8.x/server-kotlin/java/account/create-session.md +++ b/docs/examples/1.8.x/server-kotlin/java/account/create-session.md @@ -4,7 +4,8 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.8.x/server-kotlin/java/account/create.md b/docs/examples/1.8.x/server-kotlin/java/account/create.md index d24bfb8592..b7bd821681 100644 --- a/docs/examples/1.8.x/server-kotlin/java/account/create.md +++ b/docs/examples/1.8.x/server-kotlin/java/account/create.md @@ -4,7 +4,8 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.8.x/server-kotlin/java/account/update-magic-url-session.md b/docs/examples/1.8.x/server-kotlin/java/account/update-magic-url-session.md index b4735f49ea..3e236342cf 100644 --- a/docs/examples/1.8.x/server-kotlin/java/account/update-magic-url-session.md +++ b/docs/examples/1.8.x/server-kotlin/java/account/update-magic-url-session.md @@ -4,7 +4,8 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.8.x/server-kotlin/java/account/update-phone-session.md b/docs/examples/1.8.x/server-kotlin/java/account/update-phone-session.md index cbfdca58ec..97d7cd3693 100644 --- a/docs/examples/1.8.x/server-kotlin/java/account/update-phone-session.md +++ b/docs/examples/1.8.x/server-kotlin/java/account/update-phone-session.md @@ -4,7 +4,8 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID + .setProject("") // Your project ID + .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/create-collection.md b/docs/examples/1.8.x/server-kotlin/java/databases/create-collection.md index eea55558cc..083e37001a 100644 --- a/docs/examples/1.8.x/server-kotlin/java/databases/create-collection.md +++ b/docs/examples/1.8.x/server-kotlin/java/databases/create-collection.md @@ -18,6 +18,8 @@ databases.createCollection( List.of(Permission.read(Role.any())), // permissions (optional) false, // documentSecurity (optional) false, // enabled (optional) + List.of(), // attributes (optional) + List.of(), // indexes (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/update-document.md b/docs/examples/1.8.x/server-kotlin/java/databases/update-document.md index 0638225bfd..2cd48d1e4a 100644 --- a/docs/examples/1.8.x/server-kotlin/java/databases/update-document.md +++ b/docs/examples/1.8.x/server-kotlin/java/databases/update-document.md @@ -15,7 +15,13 @@ databases.updateDocument( "", // databaseId "", // collectionId "", // documentId - Map.of("a", "b"), // data (optional) + Map.of( + "username", "walter.obrien", + "email", "walter.obrien@example.com", + "fullName", "Walter O'Brien", + "age", 33, + "isAdmin", false + ), // data (optional) List.of(Permission.read(Role.any())), // permissions (optional) "", // transactionId (optional) new CoroutineCallback<>((result, error) -> { diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/update-documents.md b/docs/examples/1.8.x/server-kotlin/java/databases/update-documents.md index 57a82f56f9..9f2d73bda4 100644 --- a/docs/examples/1.8.x/server-kotlin/java/databases/update-documents.md +++ b/docs/examples/1.8.x/server-kotlin/java/databases/update-documents.md @@ -12,7 +12,13 @@ Databases databases = new Databases(client); databases.updateDocuments( "", // databaseId "", // collectionId - Map.of("a", "b"), // data (optional) + Map.of( + "username", "walter.obrien", + "email", "walter.obrien@example.com", + "fullName", "Walter O'Brien", + "age", 33, + "isAdmin", false + ), // data (optional) List.of(), // queries (optional) "", // transactionId (optional) new CoroutineCallback<>((result, error) -> { diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/upsert-document.md b/docs/examples/1.8.x/server-kotlin/java/databases/upsert-document.md index ec99390e15..a170342035 100644 --- a/docs/examples/1.8.x/server-kotlin/java/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-kotlin/java/databases/upsert-document.md @@ -15,7 +15,13 @@ databases.upsertDocument( "", // databaseId "", // collectionId "", // documentId - Map.of("a", "b"), // data + Map.of( + "username", "walter.obrien", + "email", "walter.obrien@example.com", + "fullName", "Walter O'Brien", + "age", 30, + "isAdmin", false + ), // data (optional) List.of(Permission.read(Role.any())), // permissions (optional) "", // transactionId (optional) new CoroutineCallback<>((result, error) -> { diff --git a/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-table.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-table.md index 615278a2d4..80ae1a3015 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-table.md +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-table.md @@ -18,6 +18,8 @@ tablesDB.createTable( List.of(Permission.read(Role.any())), // permissions (optional) false, // rowSecurity (optional) false, // enabled (optional) + List.of(), // columns (optional) + List.of(), // indexes (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-row.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-row.md index 5585274cbb..444cc8d9fb 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-row.md +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-row.md @@ -15,7 +15,13 @@ tablesDB.updateRow( "", // databaseId "", // tableId "", // rowId - Map.of("a", "b"), // data (optional) + Map.of( + "username", "walter.obrien", + "email", "walter.obrien@example.com", + "fullName", "Walter O'Brien", + "age", 33, + "isAdmin", false + ), // data (optional) List.of(Permission.read(Role.any())), // permissions (optional) "", // transactionId (optional) new CoroutineCallback<>((result, error) -> { diff --git a/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-rows.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-rows.md index b479613856..4674a10927 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-rows.md +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-rows.md @@ -12,7 +12,13 @@ TablesDB tablesDB = new TablesDB(client); tablesDB.updateRows( "", // databaseId "", // tableId - Map.of("a", "b"), // data (optional) + Map.of( + "username", "walter.obrien", + "email", "walter.obrien@example.com", + "fullName", "Walter O'Brien", + "age", 33, + "isAdmin", false + ), // data (optional) List.of(), // queries (optional) "", // transactionId (optional) new CoroutineCallback<>((result, error) -> { diff --git a/docs/examples/1.8.x/server-kotlin/java/tablesdb/upsert-row.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/upsert-row.md index adb2095f34..3c0bddec58 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/upsert-row.md @@ -15,7 +15,13 @@ tablesDB.upsertRow( "", // databaseId "", // tableId "", // rowId - Map.of("a", "b"), // data (optional) + Map.of( + "username", "walter.obrien", + "email", "walter.obrien@example.com", + "fullName", "Walter O'Brien", + "age", 33, + "isAdmin", false + ), // data (optional) List.of(Permission.read(Role.any())), // permissions (optional) "", // transactionId (optional) new CoroutineCallback<>((result, error) -> { diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-anonymous-session.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-anonymous-session.md index 0ddc3835dc..8f35c6359e 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-anonymous-session.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-anonymous-session.md @@ -5,6 +5,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID + .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-email-password-session.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-email-password-session.md index 9c7af95e13..55add0bbc1 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-email-password-session.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-email-password-session.md @@ -5,6 +5,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID + .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-email-token.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-email-token.md index 84acd78a9c..416163acde 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-email-token.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-email-token.md @@ -5,6 +5,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID + .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-jwt.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-jwt.md index 4c04aa1215..2691a4cfe6 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-jwt.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-jwt.md @@ -5,6 +5,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID + .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-magic-url-token.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-magic-url-token.md index c1d8cba2cb..185ee6bcce 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-magic-url-token.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-magic-url-token.md @@ -5,6 +5,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID + .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-mfa-challenge.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-mfa-challenge.md index 7213142a45..3dbe1bff20 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-mfa-challenge.md @@ -6,6 +6,7 @@ import io.appwrite.enums.AuthenticationFactor val client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID + .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-o-auth-2-token.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-o-auth-2-token.md index 1a8c1188b0..e1391dbe53 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-o-auth-2-token.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-o-auth-2-token.md @@ -6,6 +6,7 @@ import io.appwrite.enums.OAuthProvider val client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID + .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-phone-token.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-phone-token.md index be03e0659f..1d44bfa107 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-phone-token.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-phone-token.md @@ -5,6 +5,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID + .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-session.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-session.md index 5afb219ff0..07a3cd40cc 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-session.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-session.md @@ -5,6 +5,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID + .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/create.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/create.md index 80640ba830..1b5742c92c 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/create.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/account/create.md @@ -5,6 +5,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID + .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/update-magic-url-session.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/update-magic-url-session.md index d4fe7f4861..33a4b4f65b 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/update-magic-url-session.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/account/update-magic-url-session.md @@ -5,6 +5,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID + .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/update-phone-session.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/update-phone-session.md index 1bcc4c0955..346a25bd96 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/update-phone-session.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/account/update-phone-session.md @@ -5,6 +5,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID + .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/avatars/get-screenshot.md b/docs/examples/1.8.x/server-kotlin/kotlin/avatars/get-screenshot.md index a2de2e5adc..040964f381 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/avatars/get-screenshot.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/avatars/get-screenshot.md @@ -25,7 +25,7 @@ val result = avatars.getScreenshot( userAgent = "Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15", // optional fullpage = true, // optional locale = "en-US", // optional - timezone = "America/New_York", // optional + timezone = "america/new_york", // optional latitude = 37.7749, // optional longitude = -122.4194, // optional accuracy = 100, // optional diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-collection.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-collection.md index 43031b4a43..1166e73bcb 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-collection.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-collection.md @@ -17,5 +17,7 @@ val response = databases.createCollection( name = "", permissions = listOf(Permission.read(Role.any())), // optional documentSecurity = false, // optional - enabled = false // optional + enabled = false, // optional + attributes = listOf(), // optional + indexes = listOf() // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-document.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-document.md index 399dfcd970..ad3ddf04c5 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-document.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-document.md @@ -15,7 +15,13 @@ val response = databases.updateDocument( databaseId = "", collectionId = "", documentId = "", - data = mapOf( "a" to "b" ), // optional + data = mapOf( + "username" to "walter.obrien", + "email" to "walter.obrien@example.com", + "fullName" to "Walter O'Brien", + "age" to 33, + "isAdmin" to false + ), // optional permissions = listOf(Permission.read(Role.any())), // optional transactionId = "" // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-documents.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-documents.md index b5b76fcaee..f04ae12287 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-documents.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-documents.md @@ -12,7 +12,13 @@ val databases = Databases(client) val response = databases.updateDocuments( databaseId = "", collectionId = "", - data = mapOf( "a" to "b" ), // optional + data = mapOf( + "username" to "walter.obrien", + "email" to "walter.obrien@example.com", + "fullName" to "Walter O'Brien", + "age" to 33, + "isAdmin" to false + ), // optional queries = listOf(), // optional transactionId = "" // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/upsert-document.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/upsert-document.md index 8387398193..c5a2553636 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/upsert-document.md @@ -15,7 +15,13 @@ val response = databases.upsertDocument( databaseId = "", collectionId = "", documentId = "", - data = mapOf( "a" to "b" ), + data = mapOf( + "username" to "walter.obrien", + "email" to "walter.obrien@example.com", + "fullName" to "Walter O'Brien", + "age" to 30, + "isAdmin" to false + ), // optional permissions = listOf(Permission.read(Role.any())), // optional transactionId = "" // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-table.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-table.md index 5ff2ba4e08..81e4830e39 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-table.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-table.md @@ -17,5 +17,7 @@ val response = tablesDB.createTable( name = "", permissions = listOf(Permission.read(Role.any())), // optional rowSecurity = false, // optional - enabled = false // optional + enabled = false, // optional + columns = listOf(), // optional + indexes = listOf() // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-row.md index 94f3770ed1..19460e9b92 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-row.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-row.md @@ -15,7 +15,13 @@ val response = tablesDB.updateRow( databaseId = "", tableId = "", rowId = "", - data = mapOf( "a" to "b" ), // optional + data = mapOf( + "username" to "walter.obrien", + "email" to "walter.obrien@example.com", + "fullName" to "Walter O'Brien", + "age" to 33, + "isAdmin" to false + ), // optional permissions = listOf(Permission.read(Role.any())), // optional transactionId = "" // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-rows.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-rows.md index 61041a7783..f1ced7b12f 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-rows.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-rows.md @@ -12,7 +12,13 @@ val tablesDB = TablesDB(client) val response = tablesDB.updateRows( databaseId = "", tableId = "", - data = mapOf( "a" to "b" ), // optional + data = mapOf( + "username" to "walter.obrien", + "email" to "walter.obrien@example.com", + "fullName" to "Walter O'Brien", + "age" to 33, + "isAdmin" to false + ), // optional queries = listOf(), // optional transactionId = "" // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/upsert-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/upsert-row.md index b72ab80c38..dc067352f0 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/upsert-row.md @@ -15,7 +15,13 @@ val response = tablesDB.upsertRow( databaseId = "", tableId = "", rowId = "", - data = mapOf( "a" to "b" ), // optional + data = mapOf( + "username" to "walter.obrien", + "email" to "walter.obrien@example.com", + "fullName" to "Walter O'Brien", + "age" to 33, + "isAdmin" to false + ), // optional permissions = listOf(Permission.read(Role.any())), // optional transactionId = "" // optional ) diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/create-anonymous-session.md b/docs/examples/1.8.x/server-nodejs/examples/account/create-anonymous-session.md index d8590b03cb..0ec4807a06 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/account/create-anonymous-session.md +++ b/docs/examples/1.8.x/server-nodejs/examples/account/create-anonymous-session.md @@ -2,7 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/create-email-password-session.md b/docs/examples/1.8.x/server-nodejs/examples/account/create-email-password-session.md index f173d2117a..582ca2976f 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/account/create-email-password-session.md +++ b/docs/examples/1.8.x/server-nodejs/examples/account/create-email-password-session.md @@ -2,7 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/create-email-token.md b/docs/examples/1.8.x/server-nodejs/examples/account/create-email-token.md index eb071b9e08..6bb7254ef9 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/account/create-email-token.md +++ b/docs/examples/1.8.x/server-nodejs/examples/account/create-email-token.md @@ -2,7 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/create-jwt.md b/docs/examples/1.8.x/server-nodejs/examples/account/create-jwt.md index 2273646635..76d52e17f5 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/account/create-jwt.md +++ b/docs/examples/1.8.x/server-nodejs/examples/account/create-jwt.md @@ -2,7 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/create-magic-url-token.md b/docs/examples/1.8.x/server-nodejs/examples/account/create-magic-url-token.md index 59f7d10c53..d5194c5c3a 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/account/create-magic-url-token.md +++ b/docs/examples/1.8.x/server-nodejs/examples/account/create-magic-url-token.md @@ -2,7 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/create-mfa-challenge.md b/docs/examples/1.8.x/server-nodejs/examples/account/create-mfa-challenge.md index 4195f46892..9588fa16c8 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/server-nodejs/examples/account/create-mfa-challenge.md @@ -2,7 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/create-o-auth-2-token.md b/docs/examples/1.8.x/server-nodejs/examples/account/create-o-auth-2-token.md index cc4f31552a..7f9e2297e9 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/account/create-o-auth-2-token.md +++ b/docs/examples/1.8.x/server-nodejs/examples/account/create-o-auth-2-token.md @@ -2,7 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/create-phone-token.md b/docs/examples/1.8.x/server-nodejs/examples/account/create-phone-token.md index fe88e77b47..b5bb586f1d 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/account/create-phone-token.md +++ b/docs/examples/1.8.x/server-nodejs/examples/account/create-phone-token.md @@ -2,7 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/create-session.md b/docs/examples/1.8.x/server-nodejs/examples/account/create-session.md index 448f9017b5..9e6f068d5b 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/account/create-session.md +++ b/docs/examples/1.8.x/server-nodejs/examples/account/create-session.md @@ -2,7 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/create.md b/docs/examples/1.8.x/server-nodejs/examples/account/create.md index 7ba2d427d1..48ef1aaf7c 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/account/create.md +++ b/docs/examples/1.8.x/server-nodejs/examples/account/create.md @@ -2,7 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/update-magic-url-session.md b/docs/examples/1.8.x/server-nodejs/examples/account/update-magic-url-session.md index d67d481bf8..65221b5961 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/account/update-magic-url-session.md +++ b/docs/examples/1.8.x/server-nodejs/examples/account/update-magic-url-session.md @@ -2,7 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/update-phone-session.md b/docs/examples/1.8.x/server-nodejs/examples/account/update-phone-session.md index 7d9680025b..d2e7543611 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/account/update-phone-session.md +++ b/docs/examples/1.8.x/server-nodejs/examples/account/update-phone-session.md @@ -2,7 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject('') // Your project ID + .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-collection.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-collection.md index 9bc014b59b..562b5380d1 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/create-collection.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-collection.md @@ -13,5 +13,7 @@ const result = await databases.createCollection({ name: '', permissions: [sdk.Permission.read(sdk.Role.any())], // optional documentSecurity: false, // optional - enabled: false // optional + enabled: false, // optional + attributes: [], // optional + indexes: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update-document.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update-document.md index d33d78d7d3..7e1a8c507b 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/update-document.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-document.md @@ -11,7 +11,13 @@ const result = await databases.updateDocument({ databaseId: '', collectionId: '', documentId: '', - data: {}, // optional + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }, // optional permissions: [sdk.Permission.read(sdk.Role.any())], // optional transactionId: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update-documents.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update-documents.md index dc79e433aa..038ed1a7b6 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/update-documents.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-documents.md @@ -10,7 +10,13 @@ const databases = new sdk.Databases(client); const result = await databases.updateDocuments({ databaseId: '', collectionId: '', - data: {}, // optional + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }, // optional queries: [], // optional transactionId: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-nodejs/examples/databases/upsert-document.md index 8fe4b35194..55156bd663 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/upsert-document.md @@ -11,7 +11,13 @@ const result = await databases.upsertDocument({ databaseId: '', collectionId: '', documentId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, // optional permissions: [sdk.Permission.read(sdk.Role.any())], // optional transactionId: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-table.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-table.md index 6a4c12d34d..120f5de8cc 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-table.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-table.md @@ -13,5 +13,7 @@ const result = await tablesDB.createTable({ name: '', permissions: [sdk.Permission.read(sdk.Role.any())], // optional rowSecurity: false, // optional - enabled: false // optional + enabled: false, // optional + columns: [], // optional + indexes: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-row.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-row.md index d5d2ee3002..8c003bfe6d 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-row.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-row.md @@ -11,7 +11,13 @@ const result = await tablesDB.updateRow({ databaseId: '', tableId: '', rowId: '', - data: {}, // optional + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }, // optional permissions: [sdk.Permission.read(sdk.Role.any())], // optional transactionId: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-rows.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-rows.md index d66fc28a62..b41f0c2ef0 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-rows.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-rows.md @@ -10,7 +10,13 @@ const tablesDB = new sdk.TablesDB(client); const result = await tablesDB.updateRows({ databaseId: '', tableId: '', - data: {}, // optional + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }, // optional queries: [], // optional transactionId: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/upsert-row.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/upsert-row.md index f48b0daebd..2905b31fc4 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/upsert-row.md @@ -11,7 +11,13 @@ const result = await tablesDB.upsertRow({ databaseId: '', tableId: '', rowId: '', - data: {}, // optional + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }, // optional permissions: [sdk.Permission.read(sdk.Role.any())], // optional transactionId: '' // optional }); diff --git a/docs/examples/1.8.x/server-php/examples/account/create-anonymous-session.md b/docs/examples/1.8.x/server-php/examples/account/create-anonymous-session.md index b3e811e18d..9959a3fee5 100644 --- a/docs/examples/1.8.x/server-php/examples/account/create-anonymous-session.md +++ b/docs/examples/1.8.x/server-php/examples/account/create-anonymous-session.md @@ -5,7 +5,8 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject(''); // Your project ID + ->setProject('') // Your project ID + ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.8.x/server-php/examples/account/create-email-password-session.md b/docs/examples/1.8.x/server-php/examples/account/create-email-password-session.md index 827b1292c5..3ffa5a5a6b 100644 --- a/docs/examples/1.8.x/server-php/examples/account/create-email-password-session.md +++ b/docs/examples/1.8.x/server-php/examples/account/create-email-password-session.md @@ -5,7 +5,8 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject(''); // Your project ID + ->setProject('') // Your project ID + ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.8.x/server-php/examples/account/create-email-token.md b/docs/examples/1.8.x/server-php/examples/account/create-email-token.md index b2c553291b..f1405da535 100644 --- a/docs/examples/1.8.x/server-php/examples/account/create-email-token.md +++ b/docs/examples/1.8.x/server-php/examples/account/create-email-token.md @@ -5,7 +5,8 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject(''); // Your project ID + ->setProject('') // Your project ID + ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.8.x/server-php/examples/account/create-jwt.md b/docs/examples/1.8.x/server-php/examples/account/create-jwt.md index 3dc486502d..458405edd4 100644 --- a/docs/examples/1.8.x/server-php/examples/account/create-jwt.md +++ b/docs/examples/1.8.x/server-php/examples/account/create-jwt.md @@ -5,7 +5,8 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject(''); // Your project ID + ->setProject('') // Your project ID + ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.8.x/server-php/examples/account/create-magic-url-token.md b/docs/examples/1.8.x/server-php/examples/account/create-magic-url-token.md index 639b199756..6e738e649f 100644 --- a/docs/examples/1.8.x/server-php/examples/account/create-magic-url-token.md +++ b/docs/examples/1.8.x/server-php/examples/account/create-magic-url-token.md @@ -5,7 +5,8 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject(''); // Your project ID + ->setProject('') // Your project ID + ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.8.x/server-php/examples/account/create-mfa-challenge.md b/docs/examples/1.8.x/server-php/examples/account/create-mfa-challenge.md index 64471ef7e6..6f0ecf8790 100644 --- a/docs/examples/1.8.x/server-php/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/server-php/examples/account/create-mfa-challenge.md @@ -6,7 +6,8 @@ use Appwrite\Enums\AuthenticationFactor; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject(''); // Your project ID + ->setProject('') // Your project ID + ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.8.x/server-php/examples/account/create-o-auth-2-token.md b/docs/examples/1.8.x/server-php/examples/account/create-o-auth-2-token.md index 1f91db79fd..721ed364ab 100644 --- a/docs/examples/1.8.x/server-php/examples/account/create-o-auth-2-token.md +++ b/docs/examples/1.8.x/server-php/examples/account/create-o-auth-2-token.md @@ -6,7 +6,8 @@ use Appwrite\Enums\OAuthProvider; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject(''); // Your project ID + ->setProject('') // Your project ID + ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.8.x/server-php/examples/account/create-phone-token.md b/docs/examples/1.8.x/server-php/examples/account/create-phone-token.md index 93c185479e..a2b45f76ee 100644 --- a/docs/examples/1.8.x/server-php/examples/account/create-phone-token.md +++ b/docs/examples/1.8.x/server-php/examples/account/create-phone-token.md @@ -5,7 +5,8 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject(''); // Your project ID + ->setProject('') // Your project ID + ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.8.x/server-php/examples/account/create-session.md b/docs/examples/1.8.x/server-php/examples/account/create-session.md index 2ff630a2c2..02525f74ce 100644 --- a/docs/examples/1.8.x/server-php/examples/account/create-session.md +++ b/docs/examples/1.8.x/server-php/examples/account/create-session.md @@ -5,7 +5,8 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject(''); // Your project ID + ->setProject('') // Your project ID + ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.8.x/server-php/examples/account/create.md b/docs/examples/1.8.x/server-php/examples/account/create.md index f92155b6ab..91684345e0 100644 --- a/docs/examples/1.8.x/server-php/examples/account/create.md +++ b/docs/examples/1.8.x/server-php/examples/account/create.md @@ -5,7 +5,8 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject(''); // Your project ID + ->setProject('') // Your project ID + ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.8.x/server-php/examples/account/update-magic-url-session.md b/docs/examples/1.8.x/server-php/examples/account/update-magic-url-session.md index fc42cbe6d1..ef6b8cc094 100644 --- a/docs/examples/1.8.x/server-php/examples/account/update-magic-url-session.md +++ b/docs/examples/1.8.x/server-php/examples/account/update-magic-url-session.md @@ -5,7 +5,8 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject(''); // Your project ID + ->setProject('') // Your project ID + ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.8.x/server-php/examples/account/update-phone-session.md b/docs/examples/1.8.x/server-php/examples/account/update-phone-session.md index 12d71c2fcd..42f7fb933c 100644 --- a/docs/examples/1.8.x/server-php/examples/account/update-phone-session.md +++ b/docs/examples/1.8.x/server-php/examples/account/update-phone-session.md @@ -5,7 +5,8 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject(''); // Your project ID + ->setProject('') // Your project ID + ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.8.x/server-php/examples/databases/create-collection.md b/docs/examples/1.8.x/server-php/examples/databases/create-collection.md index 9ac9e365d1..aabfa0335b 100644 --- a/docs/examples/1.8.x/server-php/examples/databases/create-collection.md +++ b/docs/examples/1.8.x/server-php/examples/databases/create-collection.md @@ -18,5 +18,7 @@ $result = $databases->createCollection( name: '', permissions: [Permission::read(Role::any())], // optional documentSecurity: false, // optional - enabled: false // optional + enabled: false, // optional + attributes: [], // optional + indexes: [] // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/update-document.md b/docs/examples/1.8.x/server-php/examples/databases/update-document.md index 2aaada2b52..5037d4bf9e 100644 --- a/docs/examples/1.8.x/server-php/examples/databases/update-document.md +++ b/docs/examples/1.8.x/server-php/examples/databases/update-document.md @@ -16,7 +16,13 @@ $result = $databases->updateDocument( databaseId: '', collectionId: '', documentId: '', - data: [], // optional + data: [ + 'username' => 'walter.obrien', + 'email' => 'walter.obrien@example.com', + 'fullName' => 'Walter O'Brien', + 'age' => 33, + 'isAdmin' => false + ], // optional permissions: [Permission::read(Role::any())], // optional transactionId: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/update-documents.md b/docs/examples/1.8.x/server-php/examples/databases/update-documents.md index 72632461a9..3a4aaad284 100644 --- a/docs/examples/1.8.x/server-php/examples/databases/update-documents.md +++ b/docs/examples/1.8.x/server-php/examples/databases/update-documents.md @@ -13,7 +13,13 @@ $databases = new Databases($client); $result = $databases->updateDocuments( databaseId: '', collectionId: '', - data: [], // optional + data: [ + 'username' => 'walter.obrien', + 'email' => 'walter.obrien@example.com', + 'fullName' => 'Walter O'Brien', + 'age' => 33, + 'isAdmin' => false + ], // optional queries: [], // optional transactionId: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-php/examples/databases/upsert-document.md index 8e9d2c9c17..c4cee07e51 100644 --- a/docs/examples/1.8.x/server-php/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-php/examples/databases/upsert-document.md @@ -16,7 +16,13 @@ $result = $databases->upsertDocument( databaseId: '', collectionId: '', documentId: '', - data: [], + data: [ + 'username' => 'walter.obrien', + 'email' => 'walter.obrien@example.com', + 'fullName' => 'Walter O'Brien', + 'age' => 30, + 'isAdmin' => false + ], // optional permissions: [Permission::read(Role::any())], // optional transactionId: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/create-table.md b/docs/examples/1.8.x/server-php/examples/tablesdb/create-table.md index aff821c844..aef39e5454 100644 --- a/docs/examples/1.8.x/server-php/examples/tablesdb/create-table.md +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/create-table.md @@ -18,5 +18,7 @@ $result = $tablesDB->createTable( name: '', permissions: [Permission::read(Role::any())], // optional rowSecurity: false, // optional - enabled: false // optional + enabled: false, // optional + columns: [], // optional + indexes: [] // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/update-row.md b/docs/examples/1.8.x/server-php/examples/tablesdb/update-row.md index d92ab78968..71916cd6ec 100644 --- a/docs/examples/1.8.x/server-php/examples/tablesdb/update-row.md +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/update-row.md @@ -16,7 +16,13 @@ $result = $tablesDB->updateRow( databaseId: '', tableId: '', rowId: '', - data: [], // optional + data: [ + 'username' => 'walter.obrien', + 'email' => 'walter.obrien@example.com', + 'fullName' => 'Walter O'Brien', + 'age' => 33, + 'isAdmin' => false + ], // optional permissions: [Permission::read(Role::any())], // optional transactionId: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/update-rows.md b/docs/examples/1.8.x/server-php/examples/tablesdb/update-rows.md index 681a9f0d8b..a6892f8149 100644 --- a/docs/examples/1.8.x/server-php/examples/tablesdb/update-rows.md +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/update-rows.md @@ -13,7 +13,13 @@ $tablesDB = new TablesDB($client); $result = $tablesDB->updateRows( databaseId: '', tableId: '', - data: [], // optional + data: [ + 'username' => 'walter.obrien', + 'email' => 'walter.obrien@example.com', + 'fullName' => 'Walter O'Brien', + 'age' => 33, + 'isAdmin' => false + ], // optional queries: [], // optional transactionId: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/upsert-row.md b/docs/examples/1.8.x/server-php/examples/tablesdb/upsert-row.md index 192463e9be..e26c825505 100644 --- a/docs/examples/1.8.x/server-php/examples/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/upsert-row.md @@ -16,7 +16,13 @@ $result = $tablesDB->upsertRow( databaseId: '', tableId: '', rowId: '', - data: [], // optional + data: [ + 'username' => 'walter.obrien', + 'email' => 'walter.obrien@example.com', + 'fullName' => 'Walter O'Brien', + 'age' => 33, + 'isAdmin' => false + ], // optional permissions: [Permission::read(Role::any())], // optional transactionId: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-python/examples/account/create-anonymous-session.md b/docs/examples/1.8.x/server-python/examples/account/create-anonymous-session.md index c3b7a87d27..d98cceafbb 100644 --- a/docs/examples/1.8.x/server-python/examples/account/create-anonymous-session.md +++ b/docs/examples/1.8.x/server-python/examples/account/create-anonymous-session.md @@ -4,6 +4,7 @@ from appwrite.services.account import Account client = Client() client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('') # Your project ID +client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.8.x/server-python/examples/account/create-email-password-session.md b/docs/examples/1.8.x/server-python/examples/account/create-email-password-session.md index e831821a6c..c69b50ad84 100644 --- a/docs/examples/1.8.x/server-python/examples/account/create-email-password-session.md +++ b/docs/examples/1.8.x/server-python/examples/account/create-email-password-session.md @@ -4,6 +4,7 @@ from appwrite.services.account import Account client = Client() client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('') # Your project ID +client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.8.x/server-python/examples/account/create-email-token.md b/docs/examples/1.8.x/server-python/examples/account/create-email-token.md index 7ff4f6b8a9..0e4f1b6a43 100644 --- a/docs/examples/1.8.x/server-python/examples/account/create-email-token.md +++ b/docs/examples/1.8.x/server-python/examples/account/create-email-token.md @@ -4,6 +4,7 @@ from appwrite.services.account import Account client = Client() client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('') # Your project ID +client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.8.x/server-python/examples/account/create-jwt.md b/docs/examples/1.8.x/server-python/examples/account/create-jwt.md index 172f45f996..9b5fd905c5 100644 --- a/docs/examples/1.8.x/server-python/examples/account/create-jwt.md +++ b/docs/examples/1.8.x/server-python/examples/account/create-jwt.md @@ -4,6 +4,7 @@ from appwrite.services.account import Account client = Client() client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('') # Your project ID +client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.8.x/server-python/examples/account/create-magic-url-token.md b/docs/examples/1.8.x/server-python/examples/account/create-magic-url-token.md index 14e76ed4d3..439f2e743d 100644 --- a/docs/examples/1.8.x/server-python/examples/account/create-magic-url-token.md +++ b/docs/examples/1.8.x/server-python/examples/account/create-magic-url-token.md @@ -4,6 +4,7 @@ from appwrite.services.account import Account client = Client() client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('') # Your project ID +client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.8.x/server-python/examples/account/create-mfa-challenge.md b/docs/examples/1.8.x/server-python/examples/account/create-mfa-challenge.md index abd746c605..85dcd7a929 100644 --- a/docs/examples/1.8.x/server-python/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/server-python/examples/account/create-mfa-challenge.md @@ -5,6 +5,7 @@ from appwrite.enums import AuthenticationFactor client = Client() client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('') # Your project ID +client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.8.x/server-python/examples/account/create-o-auth-2-token.md b/docs/examples/1.8.x/server-python/examples/account/create-o-auth-2-token.md index 2dc171bb31..4d4c068065 100644 --- a/docs/examples/1.8.x/server-python/examples/account/create-o-auth-2-token.md +++ b/docs/examples/1.8.x/server-python/examples/account/create-o-auth-2-token.md @@ -5,6 +5,7 @@ from appwrite.enums import OAuthProvider client = Client() client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('') # Your project ID +client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.8.x/server-python/examples/account/create-phone-token.md b/docs/examples/1.8.x/server-python/examples/account/create-phone-token.md index 06c2b20414..3b63669769 100644 --- a/docs/examples/1.8.x/server-python/examples/account/create-phone-token.md +++ b/docs/examples/1.8.x/server-python/examples/account/create-phone-token.md @@ -4,6 +4,7 @@ from appwrite.services.account import Account client = Client() client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('') # Your project ID +client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.8.x/server-python/examples/account/create-session.md b/docs/examples/1.8.x/server-python/examples/account/create-session.md index 1048dfedb2..a05d4f2422 100644 --- a/docs/examples/1.8.x/server-python/examples/account/create-session.md +++ b/docs/examples/1.8.x/server-python/examples/account/create-session.md @@ -4,6 +4,7 @@ from appwrite.services.account import Account client = Client() client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('') # Your project ID +client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.8.x/server-python/examples/account/create.md b/docs/examples/1.8.x/server-python/examples/account/create.md index 7eda5a37fe..a0c09f1017 100644 --- a/docs/examples/1.8.x/server-python/examples/account/create.md +++ b/docs/examples/1.8.x/server-python/examples/account/create.md @@ -4,6 +4,7 @@ from appwrite.services.account import Account client = Client() client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('') # Your project ID +client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.8.x/server-python/examples/account/update-magic-url-session.md b/docs/examples/1.8.x/server-python/examples/account/update-magic-url-session.md index 0146083030..60baca81f9 100644 --- a/docs/examples/1.8.x/server-python/examples/account/update-magic-url-session.md +++ b/docs/examples/1.8.x/server-python/examples/account/update-magic-url-session.md @@ -4,6 +4,7 @@ from appwrite.services.account import Account client = Client() client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('') # Your project ID +client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.8.x/server-python/examples/account/update-phone-session.md b/docs/examples/1.8.x/server-python/examples/account/update-phone-session.md index 52e77233a6..5fbba21347 100644 --- a/docs/examples/1.8.x/server-python/examples/account/update-phone-session.md +++ b/docs/examples/1.8.x/server-python/examples/account/update-phone-session.md @@ -4,6 +4,7 @@ from appwrite.services.account import Account client = Client() client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('') # Your project ID +client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.8.x/server-python/examples/databases/create-collection.md b/docs/examples/1.8.x/server-python/examples/databases/create-collection.md index 66dc66763b..196a9d5565 100644 --- a/docs/examples/1.8.x/server-python/examples/databases/create-collection.md +++ b/docs/examples/1.8.x/server-python/examples/databases/create-collection.md @@ -16,5 +16,7 @@ result = databases.create_collection( name = '', permissions = [Permission.read(Role.any())], # optional document_security = False, # optional - enabled = False # optional + enabled = False, # optional + attributes = [], # optional + indexes = [] # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/databases/update-document.md b/docs/examples/1.8.x/server-python/examples/databases/update-document.md index a396b9e771..91d233d09e 100644 --- a/docs/examples/1.8.x/server-python/examples/databases/update-document.md +++ b/docs/examples/1.8.x/server-python/examples/databases/update-document.md @@ -14,7 +14,13 @@ result = databases.update_document( database_id = '', collection_id = '', document_id = '', - data = {}, # optional + data = { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": False + }, # optional permissions = [Permission.read(Role.any())], # optional transaction_id = '' # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/databases/update-documents.md b/docs/examples/1.8.x/server-python/examples/databases/update-documents.md index 2aab8c61c4..cbf6f64652 100644 --- a/docs/examples/1.8.x/server-python/examples/databases/update-documents.md +++ b/docs/examples/1.8.x/server-python/examples/databases/update-documents.md @@ -11,7 +11,13 @@ databases = Databases(client) result = databases.update_documents( database_id = '', collection_id = '', - data = {}, # optional + data = { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": False + }, # optional queries = [], # optional transaction_id = '' # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-python/examples/databases/upsert-document.md index ac53ae1172..0d0f1b21d6 100644 --- a/docs/examples/1.8.x/server-python/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-python/examples/databases/upsert-document.md @@ -14,7 +14,13 @@ result = databases.upsert_document( database_id = '', collection_id = '', document_id = '', - data = {}, + data = { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": False + }, # optional permissions = [Permission.read(Role.any())], # optional transaction_id = '' # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/create-table.md b/docs/examples/1.8.x/server-python/examples/tablesdb/create-table.md index 91a15df486..649a4e8ad2 100644 --- a/docs/examples/1.8.x/server-python/examples/tablesdb/create-table.md +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/create-table.md @@ -16,5 +16,7 @@ result = tables_db.create_table( name = '', permissions = [Permission.read(Role.any())], # optional row_security = False, # optional - enabled = False # optional + enabled = False, # optional + columns = [], # optional + indexes = [] # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/update-row.md b/docs/examples/1.8.x/server-python/examples/tablesdb/update-row.md index 3d342642ab..d6a55c6485 100644 --- a/docs/examples/1.8.x/server-python/examples/tablesdb/update-row.md +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/update-row.md @@ -14,7 +14,13 @@ result = tables_db.update_row( database_id = '', table_id = '', row_id = '', - data = {}, # optional + data = { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": False + }, # optional permissions = [Permission.read(Role.any())], # optional transaction_id = '' # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/update-rows.md b/docs/examples/1.8.x/server-python/examples/tablesdb/update-rows.md index 4717581276..77360af4d8 100644 --- a/docs/examples/1.8.x/server-python/examples/tablesdb/update-rows.md +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/update-rows.md @@ -11,7 +11,13 @@ tables_db = TablesDB(client) result = tables_db.update_rows( database_id = '', table_id = '', - data = {}, # optional + data = { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": False + }, # optional queries = [], # optional transaction_id = '' # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/upsert-row.md b/docs/examples/1.8.x/server-python/examples/tablesdb/upsert-row.md index a89d657c63..d0520b384e 100644 --- a/docs/examples/1.8.x/server-python/examples/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/upsert-row.md @@ -14,7 +14,13 @@ result = tables_db.upsert_row( database_id = '', table_id = '', row_id = '', - data = {}, # optional + data = { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": False + }, # optional permissions = [Permission.read(Role.any())], # optional transaction_id = '' # optional ) diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-anonymous-session.md b/docs/examples/1.8.x/server-rest/examples/account/create-anonymous-session.md index b62c82a6a8..ff7408fa94 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-anonymous-session.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-anonymous-session.md @@ -3,4 +3,6 @@ Host: cloud.appwrite.io Content-Type: application/json X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-email-password-session.md b/docs/examples/1.8.x/server-rest/examples/account/create-email-password-session.md index 1103d2ebfb..2cf4121b4f 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-email-password-session.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-email-password-session.md @@ -3,6 +3,8 @@ Host: cloud.appwrite.io Content-Type: application/json X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: { "email": "email@example.com", diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-email-token.md b/docs/examples/1.8.x/server-rest/examples/account/create-email-token.md index 552b724b9c..3e0d10827f 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-email-token.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-email-token.md @@ -3,6 +3,8 @@ Host: cloud.appwrite.io Content-Type: application/json X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: { "userId": "", diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-jwt.md b/docs/examples/1.8.x/server-rest/examples/account/create-jwt.md index 62a7dee7e9..52901d67a2 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-jwt.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-jwt.md @@ -3,4 +3,6 @@ Host: cloud.appwrite.io Content-Type: application/json X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-magic-url-token.md b/docs/examples/1.8.x/server-rest/examples/account/create-magic-url-token.md index 29d68bd0fa..4629afaac8 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-magic-url-token.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-magic-url-token.md @@ -3,6 +3,8 @@ Host: cloud.appwrite.io Content-Type: application/json X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: { "userId": "", diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-mfa-challenge.md b/docs/examples/1.8.x/server-rest/examples/account/create-mfa-challenge.md index e5a5b0ea05..0990fcb98d 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-mfa-challenge.md @@ -3,6 +3,8 @@ Host: cloud.appwrite.io Content-Type: application/json X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: { "factor": "email" diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-o-auth-2-token.md b/docs/examples/1.8.x/server-rest/examples/account/create-o-auth-2-token.md index 8a0cab614f..6d569682c1 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-o-auth-2-token.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-o-auth-2-token.md @@ -2,3 +2,5 @@ GET /v1/account/tokens/oauth2/{provider} HTTP/1.1 Host: cloud.appwrite.io X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-phone-token.md b/docs/examples/1.8.x/server-rest/examples/account/create-phone-token.md index 5127c8377a..c3cb75347f 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-phone-token.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-phone-token.md @@ -3,6 +3,8 @@ Host: cloud.appwrite.io Content-Type: application/json X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: { "userId": "", diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-session.md b/docs/examples/1.8.x/server-rest/examples/account/create-session.md index 0acc50cda6..810f816212 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create-session.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create-session.md @@ -3,6 +3,8 @@ Host: cloud.appwrite.io Content-Type: application/json X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: { "userId": "", diff --git a/docs/examples/1.8.x/server-rest/examples/account/create.md b/docs/examples/1.8.x/server-rest/examples/account/create.md index fa06bfcc1a..ef9967cab1 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create.md @@ -3,6 +3,8 @@ Host: cloud.appwrite.io Content-Type: application/json X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: { "userId": "", diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-magic-url-session.md b/docs/examples/1.8.x/server-rest/examples/account/update-magic-url-session.md index 1a82afbfcc..a1fe139a8b 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-magic-url-session.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-magic-url-session.md @@ -3,6 +3,8 @@ Host: cloud.appwrite.io Content-Type: application/json X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: { "userId": "", diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-phone-session.md b/docs/examples/1.8.x/server-rest/examples/account/update-phone-session.md index 54872eecd2..eb18a0960c 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-phone-session.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-phone-session.md @@ -3,6 +3,8 @@ Host: cloud.appwrite.io Content-Type: application/json X-Appwrite-Response-Format: 1.8.0 X-Appwrite-Project: +X-Appwrite-Session: +X-Appwrite-JWT: { "userId": "", diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-collection.md b/docs/examples/1.8.x/server-rest/examples/databases/create-collection.md index 4f1e77728e..6d87ed2e90 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-collection.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-collection.md @@ -10,5 +10,7 @@ X-Appwrite-Key: "name": "", "permissions": ["read(\"any\")"], "documentSecurity": false, - "enabled": false + "enabled": false, + "attributes": [], + "indexes": [] } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-document.md b/docs/examples/1.8.x/server-rest/examples/databases/update-document.md index dafd249c31..16415c1205 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-document.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-document.md @@ -8,7 +8,13 @@ X-Appwrite-Key: X-Appwrite-JWT: { - "data": {}, + "data": { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }, "permissions": ["read(\"any\")"], "transactionId": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-documents.md b/docs/examples/1.8.x/server-rest/examples/databases/update-documents.md index 69d2dccd13..d408ee61cc 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-documents.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-documents.md @@ -6,7 +6,13 @@ X-Appwrite-Project: X-Appwrite-Key: { - "data": {}, + "data": { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }, "queries": [], "transactionId": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-rest/examples/databases/upsert-document.md index e4a9c7796a..f0b41d10dc 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/upsert-document.md @@ -8,7 +8,13 @@ X-Appwrite-Key: X-Appwrite-JWT: { - "data": {}, + "data": { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, "permissions": ["read(\"any\")"], "transactionId": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-table.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-table.md index 1625e8441b..d06ce5ce04 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-table.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-table.md @@ -10,5 +10,7 @@ X-Appwrite-Key: "name": "", "permissions": ["read(\"any\")"], "rowSecurity": false, - "enabled": false + "enabled": false, + "columns": [], + "indexes": [] } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-row.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-row.md index 5c37e3d929..2cbef177bb 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-row.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-row.md @@ -8,7 +8,13 @@ X-Appwrite-Key: X-Appwrite-JWT: { - "data": {}, + "data": { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }, "permissions": ["read(\"any\")"], "transactionId": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-rows.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-rows.md index c872907d30..7ba1a7af2b 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-rows.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-rows.md @@ -6,7 +6,13 @@ X-Appwrite-Project: X-Appwrite-Key: { - "data": {}, + "data": { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }, "queries": [], "transactionId": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/upsert-row.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/upsert-row.md index 9f698fb195..a333aa3fc4 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/upsert-row.md @@ -8,7 +8,13 @@ X-Appwrite-Key: X-Appwrite-JWT: { - "data": {}, + "data": { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + }, "permissions": ["read(\"any\")"], "transactionId": "" } diff --git a/docs/examples/1.8.x/server-ruby/examples/account/create-anonymous-session.md b/docs/examples/1.8.x/server-ruby/examples/account/create-anonymous-session.md index bcb25d66f5..d24b239712 100644 --- a/docs/examples/1.8.x/server-ruby/examples/account/create-anonymous-session.md +++ b/docs/examples/1.8.x/server-ruby/examples/account/create-anonymous-session.md @@ -5,6 +5,7 @@ include Appwrite client = Client.new .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID + .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.8.x/server-ruby/examples/account/create-email-password-session.md b/docs/examples/1.8.x/server-ruby/examples/account/create-email-password-session.md index be5fc1c07a..d38a7c3cc5 100644 --- a/docs/examples/1.8.x/server-ruby/examples/account/create-email-password-session.md +++ b/docs/examples/1.8.x/server-ruby/examples/account/create-email-password-session.md @@ -5,6 +5,7 @@ include Appwrite client = Client.new .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID + .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.8.x/server-ruby/examples/account/create-email-token.md b/docs/examples/1.8.x/server-ruby/examples/account/create-email-token.md index d75e310a36..6fb295c529 100644 --- a/docs/examples/1.8.x/server-ruby/examples/account/create-email-token.md +++ b/docs/examples/1.8.x/server-ruby/examples/account/create-email-token.md @@ -5,6 +5,7 @@ include Appwrite client = Client.new .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID + .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.8.x/server-ruby/examples/account/create-jwt.md b/docs/examples/1.8.x/server-ruby/examples/account/create-jwt.md index 8e5b6b78c8..682c247750 100644 --- a/docs/examples/1.8.x/server-ruby/examples/account/create-jwt.md +++ b/docs/examples/1.8.x/server-ruby/examples/account/create-jwt.md @@ -5,6 +5,7 @@ include Appwrite client = Client.new .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID + .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.8.x/server-ruby/examples/account/create-magic-url-token.md b/docs/examples/1.8.x/server-ruby/examples/account/create-magic-url-token.md index 9537d1fb3d..ea19378441 100644 --- a/docs/examples/1.8.x/server-ruby/examples/account/create-magic-url-token.md +++ b/docs/examples/1.8.x/server-ruby/examples/account/create-magic-url-token.md @@ -5,6 +5,7 @@ include Appwrite client = Client.new .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID + .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.8.x/server-ruby/examples/account/create-mfa-challenge.md b/docs/examples/1.8.x/server-ruby/examples/account/create-mfa-challenge.md index ba34779ad2..e5da228b87 100644 --- a/docs/examples/1.8.x/server-ruby/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/server-ruby/examples/account/create-mfa-challenge.md @@ -6,6 +6,7 @@ include Appwrite::Enums client = Client.new .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID + .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.8.x/server-ruby/examples/account/create-o-auth-2-token.md b/docs/examples/1.8.x/server-ruby/examples/account/create-o-auth-2-token.md index 52bc5d6194..60543c9441 100644 --- a/docs/examples/1.8.x/server-ruby/examples/account/create-o-auth-2-token.md +++ b/docs/examples/1.8.x/server-ruby/examples/account/create-o-auth-2-token.md @@ -6,6 +6,7 @@ include Appwrite::Enums client = Client.new .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID + .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.8.x/server-ruby/examples/account/create-phone-token.md b/docs/examples/1.8.x/server-ruby/examples/account/create-phone-token.md index 81bedd0ce9..d1f2e1e849 100644 --- a/docs/examples/1.8.x/server-ruby/examples/account/create-phone-token.md +++ b/docs/examples/1.8.x/server-ruby/examples/account/create-phone-token.md @@ -5,6 +5,7 @@ include Appwrite client = Client.new .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID + .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.8.x/server-ruby/examples/account/create-session.md b/docs/examples/1.8.x/server-ruby/examples/account/create-session.md index 4b8ce216bc..6d606b53b3 100644 --- a/docs/examples/1.8.x/server-ruby/examples/account/create-session.md +++ b/docs/examples/1.8.x/server-ruby/examples/account/create-session.md @@ -5,6 +5,7 @@ include Appwrite client = Client.new .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID + .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.8.x/server-ruby/examples/account/create.md b/docs/examples/1.8.x/server-ruby/examples/account/create.md index 84228b8351..259e25e70d 100644 --- a/docs/examples/1.8.x/server-ruby/examples/account/create.md +++ b/docs/examples/1.8.x/server-ruby/examples/account/create.md @@ -5,6 +5,7 @@ include Appwrite client = Client.new .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID + .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.8.x/server-ruby/examples/account/update-magic-url-session.md b/docs/examples/1.8.x/server-ruby/examples/account/update-magic-url-session.md index c96820f183..27257c8281 100644 --- a/docs/examples/1.8.x/server-ruby/examples/account/update-magic-url-session.md +++ b/docs/examples/1.8.x/server-ruby/examples/account/update-magic-url-session.md @@ -5,6 +5,7 @@ include Appwrite client = Client.new .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID + .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.8.x/server-ruby/examples/account/update-phone-session.md b/docs/examples/1.8.x/server-ruby/examples/account/update-phone-session.md index b81c485c8c..307b9a3a55 100644 --- a/docs/examples/1.8.x/server-ruby/examples/account/update-phone-session.md +++ b/docs/examples/1.8.x/server-ruby/examples/account/update-phone-session.md @@ -5,6 +5,7 @@ include Appwrite client = Client.new .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID + .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/create-collection.md b/docs/examples/1.8.x/server-ruby/examples/databases/create-collection.md index 178b5a5221..ab6233c6ee 100644 --- a/docs/examples/1.8.x/server-ruby/examples/databases/create-collection.md +++ b/docs/examples/1.8.x/server-ruby/examples/databases/create-collection.md @@ -17,5 +17,7 @@ result = databases.create_collection( name: '', permissions: [Permission.read(Role.any())], # optional document_security: false, # optional - enabled: false # optional + enabled: false, # optional + attributes: [], # optional + indexes: [] # optional ) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/update-document.md b/docs/examples/1.8.x/server-ruby/examples/databases/update-document.md index 5a1eb56537..0f736a1a66 100644 --- a/docs/examples/1.8.x/server-ruby/examples/databases/update-document.md +++ b/docs/examples/1.8.x/server-ruby/examples/databases/update-document.md @@ -15,7 +15,13 @@ result = databases.update_document( database_id: '', collection_id: '', document_id: '', - data: {}, # optional + data: { + "username" => "walter.obrien", + "email" => "walter.obrien@example.com", + "fullName" => "Walter O'Brien", + "age" => 33, + "isAdmin" => false + }, # optional permissions: [Permission.read(Role.any())], # optional transaction_id: '' # optional ) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/update-documents.md b/docs/examples/1.8.x/server-ruby/examples/databases/update-documents.md index c85f594e55..00bdc9a20c 100644 --- a/docs/examples/1.8.x/server-ruby/examples/databases/update-documents.md +++ b/docs/examples/1.8.x/server-ruby/examples/databases/update-documents.md @@ -12,7 +12,13 @@ databases = Databases.new(client) result = databases.update_documents( database_id: '', collection_id: '', - data: {}, # optional + data: { + "username" => "walter.obrien", + "email" => "walter.obrien@example.com", + "fullName" => "Walter O'Brien", + "age" => 33, + "isAdmin" => false + }, # optional queries: [], # optional transaction_id: '' # optional ) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-ruby/examples/databases/upsert-document.md index fa2f1cd124..07c7b7e876 100644 --- a/docs/examples/1.8.x/server-ruby/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-ruby/examples/databases/upsert-document.md @@ -15,7 +15,13 @@ result = databases.upsert_document( database_id: '', collection_id: '', document_id: '', - data: {}, + data: { + "username" => "walter.obrien", + "email" => "walter.obrien@example.com", + "fullName" => "Walter O'Brien", + "age" => 30, + "isAdmin" => false + }, # optional permissions: [Permission.read(Role.any())], # optional transaction_id: '' # optional ) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-table.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-table.md index 6a1a0e901a..ba09b9dfc0 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-table.md +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-table.md @@ -17,5 +17,7 @@ result = tables_db.create_table( name: '', permissions: [Permission.read(Role.any())], # optional row_security: false, # optional - enabled: false # optional + enabled: false, # optional + columns: [], # optional + indexes: [] # optional ) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-row.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-row.md index fc6fca6635..16e8accc24 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-row.md +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-row.md @@ -15,7 +15,13 @@ result = tables_db.update_row( database_id: '', table_id: '', row_id: '', - data: {}, # optional + data: { + "username" => "walter.obrien", + "email" => "walter.obrien@example.com", + "fullName" => "Walter O'Brien", + "age" => 33, + "isAdmin" => false + }, # optional permissions: [Permission.read(Role.any())], # optional transaction_id: '' # optional ) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-rows.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-rows.md index 7c538a137d..c82754d587 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-rows.md +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-rows.md @@ -12,7 +12,13 @@ tables_db = TablesDB.new(client) result = tables_db.update_rows( database_id: '', table_id: '', - data: {}, # optional + data: { + "username" => "walter.obrien", + "email" => "walter.obrien@example.com", + "fullName" => "Walter O'Brien", + "age" => 33, + "isAdmin" => false + }, # optional queries: [], # optional transaction_id: '' # optional ) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/upsert-row.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/upsert-row.md index 6201834ea6..11210f39d4 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/upsert-row.md @@ -15,7 +15,13 @@ result = tables_db.upsert_row( database_id: '', table_id: '', row_id: '', - data: {}, # optional + data: { + "username" => "walter.obrien", + "email" => "walter.obrien@example.com", + "fullName" => "Walter O'Brien", + "age" => 33, + "isAdmin" => false + }, # optional permissions: [Permission.read(Role.any())], # optional transaction_id: '' # optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/account/create-anonymous-session.md b/docs/examples/1.8.x/server-swift/examples/account/create-anonymous-session.md index 22020a16d9..f66db94e52 100644 --- a/docs/examples/1.8.x/server-swift/examples/account/create-anonymous-session.md +++ b/docs/examples/1.8.x/server-swift/examples/account/create-anonymous-session.md @@ -3,6 +3,7 @@ import Appwrite let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID + .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.8.x/server-swift/examples/account/create-email-password-session.md b/docs/examples/1.8.x/server-swift/examples/account/create-email-password-session.md index 5f541a8a15..fe383fc1d6 100644 --- a/docs/examples/1.8.x/server-swift/examples/account/create-email-password-session.md +++ b/docs/examples/1.8.x/server-swift/examples/account/create-email-password-session.md @@ -3,6 +3,7 @@ import Appwrite let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID + .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.8.x/server-swift/examples/account/create-email-token.md b/docs/examples/1.8.x/server-swift/examples/account/create-email-token.md index cf82afde8f..5ee5fa63b8 100644 --- a/docs/examples/1.8.x/server-swift/examples/account/create-email-token.md +++ b/docs/examples/1.8.x/server-swift/examples/account/create-email-token.md @@ -3,6 +3,7 @@ import Appwrite let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID + .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.8.x/server-swift/examples/account/create-jwt.md b/docs/examples/1.8.x/server-swift/examples/account/create-jwt.md index fbcd50401c..f4bb73d079 100644 --- a/docs/examples/1.8.x/server-swift/examples/account/create-jwt.md +++ b/docs/examples/1.8.x/server-swift/examples/account/create-jwt.md @@ -3,6 +3,7 @@ import Appwrite let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID + .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.8.x/server-swift/examples/account/create-magic-url-token.md b/docs/examples/1.8.x/server-swift/examples/account/create-magic-url-token.md index 27bbe4137e..d1df7a17f1 100644 --- a/docs/examples/1.8.x/server-swift/examples/account/create-magic-url-token.md +++ b/docs/examples/1.8.x/server-swift/examples/account/create-magic-url-token.md @@ -3,6 +3,7 @@ import Appwrite let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID + .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.8.x/server-swift/examples/account/create-mfa-challenge.md b/docs/examples/1.8.x/server-swift/examples/account/create-mfa-challenge.md index 27f1bc1784..2703d0a836 100644 --- a/docs/examples/1.8.x/server-swift/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/server-swift/examples/account/create-mfa-challenge.md @@ -4,6 +4,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID + .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.8.x/server-swift/examples/account/create-o-auth-2-token.md b/docs/examples/1.8.x/server-swift/examples/account/create-o-auth-2-token.md index 21b54e8c9a..396fdce2cc 100644 --- a/docs/examples/1.8.x/server-swift/examples/account/create-o-auth-2-token.md +++ b/docs/examples/1.8.x/server-swift/examples/account/create-o-auth-2-token.md @@ -4,6 +4,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID + .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.8.x/server-swift/examples/account/create-phone-token.md b/docs/examples/1.8.x/server-swift/examples/account/create-phone-token.md index 12b2d4b223..20c7173a3f 100644 --- a/docs/examples/1.8.x/server-swift/examples/account/create-phone-token.md +++ b/docs/examples/1.8.x/server-swift/examples/account/create-phone-token.md @@ -3,6 +3,7 @@ import Appwrite let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID + .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.8.x/server-swift/examples/account/create-session.md b/docs/examples/1.8.x/server-swift/examples/account/create-session.md index 2065692a16..6cf206d6f7 100644 --- a/docs/examples/1.8.x/server-swift/examples/account/create-session.md +++ b/docs/examples/1.8.x/server-swift/examples/account/create-session.md @@ -3,6 +3,7 @@ import Appwrite let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID + .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.8.x/server-swift/examples/account/create.md b/docs/examples/1.8.x/server-swift/examples/account/create.md index 79b4db64ba..8740f9b357 100644 --- a/docs/examples/1.8.x/server-swift/examples/account/create.md +++ b/docs/examples/1.8.x/server-swift/examples/account/create.md @@ -3,6 +3,7 @@ import Appwrite let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID + .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.8.x/server-swift/examples/account/update-magic-url-session.md b/docs/examples/1.8.x/server-swift/examples/account/update-magic-url-session.md index 507006b230..4bfe518e55 100644 --- a/docs/examples/1.8.x/server-swift/examples/account/update-magic-url-session.md +++ b/docs/examples/1.8.x/server-swift/examples/account/update-magic-url-session.md @@ -3,6 +3,7 @@ import Appwrite let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID + .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.8.x/server-swift/examples/account/update-phone-session.md b/docs/examples/1.8.x/server-swift/examples/account/update-phone-session.md index f6776d1de1..80945ffcf7 100644 --- a/docs/examples/1.8.x/server-swift/examples/account/update-phone-session.md +++ b/docs/examples/1.8.x/server-swift/examples/account/update-phone-session.md @@ -3,6 +3,7 @@ import Appwrite let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID + .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.8.x/server-swift/examples/databases/create-collection.md b/docs/examples/1.8.x/server-swift/examples/databases/create-collection.md index 823913ff2f..132c4fe545 100644 --- a/docs/examples/1.8.x/server-swift/examples/databases/create-collection.md +++ b/docs/examples/1.8.x/server-swift/examples/databases/create-collection.md @@ -13,6 +13,8 @@ let collection = try await databases.createCollection( name: "", permissions: [Permission.read(Role.any())], // optional documentSecurity: false, // optional - enabled: false // optional + enabled: false, // optional + attributes: [], // optional + indexes: [] // optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/databases/update-document.md b/docs/examples/1.8.x/server-swift/examples/databases/update-document.md index dbb954f133..7c23e2684f 100644 --- a/docs/examples/1.8.x/server-swift/examples/databases/update-document.md +++ b/docs/examples/1.8.x/server-swift/examples/databases/update-document.md @@ -11,7 +11,13 @@ let document = try await databases.updateDocument( databaseId: "", collectionId: "", documentId: "", - data: [:], // optional + data: [ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + ], // optional permissions: [Permission.read(Role.any())], // optional transactionId: "" // optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/databases/update-documents.md b/docs/examples/1.8.x/server-swift/examples/databases/update-documents.md index f1fb34aa3c..2326f5f363 100644 --- a/docs/examples/1.8.x/server-swift/examples/databases/update-documents.md +++ b/docs/examples/1.8.x/server-swift/examples/databases/update-documents.md @@ -10,7 +10,13 @@ let databases = Databases(client) let documentList = try await databases.updateDocuments( databaseId: "", collectionId: "", - data: [:], // optional + data: [ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + ], // optional queries: [], // optional transactionId: "" // optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-swift/examples/databases/upsert-document.md index 1873d5e015..ae57ac579c 100644 --- a/docs/examples/1.8.x/server-swift/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-swift/examples/databases/upsert-document.md @@ -11,7 +11,13 @@ let document = try await databases.upsertDocument( databaseId: "", collectionId: "", documentId: "", - data: [:], + data: [ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + ], // optional permissions: [Permission.read(Role.any())], // optional transactionId: "" // optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/create-table.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-table.md index a97613e775..c04c25aa4a 100644 --- a/docs/examples/1.8.x/server-swift/examples/tablesdb/create-table.md +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-table.md @@ -13,6 +13,8 @@ let table = try await tablesDB.createTable( name: "", permissions: [Permission.read(Role.any())], // optional rowSecurity: false, // optional - enabled: false // optional + enabled: false, // optional + columns: [], // optional + indexes: [] // optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/update-row.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-row.md index d13df3a96f..c785b625c1 100644 --- a/docs/examples/1.8.x/server-swift/examples/tablesdb/update-row.md +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-row.md @@ -11,7 +11,13 @@ let row = try await tablesDB.updateRow( databaseId: "", tableId: "", rowId: "", - data: [:], // optional + data: [ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + ], // optional permissions: [Permission.read(Role.any())], // optional transactionId: "" // optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/update-rows.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-rows.md index f18a2a306c..035572c0f4 100644 --- a/docs/examples/1.8.x/server-swift/examples/tablesdb/update-rows.md +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-rows.md @@ -10,7 +10,13 @@ let tablesDB = TablesDB(client) let rowList = try await tablesDB.updateRows( databaseId: "", tableId: "", - data: [:], // optional + data: [ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + ], // optional queries: [], // optional transactionId: "" // optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/upsert-row.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/upsert-row.md index e6fec83c08..fc7f454548 100644 --- a/docs/examples/1.8.x/server-swift/examples/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/upsert-row.md @@ -11,7 +11,13 @@ let row = try await tablesDB.upsertRow( databaseId: "", tableId: "", rowId: "", - data: [:], // optional + data: [ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 33, + "isAdmin": false + ], // optional permissions: [Permission.read(Role.any())], // optional transactionId: "" // optional ) diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Update.php index 2d55cd54f4..192b10c956 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Update.php @@ -74,7 +74,7 @@ class Update extends Action )) ->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('data', [], new JSON(), 'Document data as JSON object. Include only attribute and value pairs to be updated.', true, example: '{"username":"walter.obrien","email":"walter.obrien@example.com","fullName":"Walter O\'Brien","age":33,"isAdmin":false}') ->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) ->param('transactionId', null, new Nullable(new UID()), 'Transaction ID for staging the operation.', true) ->inject('response') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Update.php index bfa04bfcb3..707857347a 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Update.php @@ -77,7 +77,7 @@ class Update extends Action ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID.') ->param('documentId', '', new UID(), 'Document ID.') - ->param('data', [], new JSON(), 'Document data as JSON object. Include only attribute and value pairs to be updated.', true) + ->param('data', [], new JSON(), 'Document data as JSON object. Include only attribute and value pairs to be updated.', true, example: '{"username":"walter.obrien","email":"walter.obrien@example.com","fullName":"Walter O\'Brien","age":33,"isAdmin":false}') ->param('permissions', null, new Nullable(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) ->param('transactionId', null, new Nullable(new UID()), 'Transaction ID for staging the operation.', true) ->inject('requestTimestamp') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Upsert.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Upsert.php index d966b524c4..b32871add2 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Upsert.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Upsert.php @@ -80,7 +80,7 @@ class Upsert extends Action ->param('databaseId', '', new UID(), 'Database 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('data', [], new JSON(), 'Document data as JSON object. Include all required attributes of the document to be created or updated.', true, example: '{"username":"walter.obrien","email":"walter.obrien@example.com","fullName":"Walter O\'Brien","age":30,"isAdmin":false}') ->param('permissions', null, new Nullable(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) ->param('transactionId', null, new Nullable(new UID()), 'Transaction ID for staging the operation.', true) ->inject('requestTimestamp') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Bulk/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Bulk/Update.php index 856f17ed10..fea59b8b13 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Bulk/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Bulk/Update.php @@ -57,7 +57,7 @@ class Update extends DocumentsUpdate )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('tableId', '', new UID(), 'Table ID.') - ->param('data', [], new JSON(), 'Row data as JSON object. Include only column and value pairs to be updated.', true) + ->param('data', [], new JSON(), 'Row data as JSON object. Include only column and value pairs to be updated.', true, example: '{"username":"walter.obrien","email":"walter.obrien@example.com","fullName":"Walter O\'Brien","age":33,"isAdmin":false}') ->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) ->param('transactionId', null, new Nullable(new UID()), 'Transaction ID for staging the operation.', true) ->inject('response') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Update.php index a143c94615..fe4ffc4995 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Update.php @@ -59,7 +59,7 @@ class Update extends DocumentUpdate ->param('databaseId', '', new UID(), 'Database ID.') ->param('tableId', '', new UID(), 'Table ID.') ->param('rowId', '', new UID(), 'Row ID.') - ->param('data', [], new JSON(), 'Row data as JSON object. Include only columns and value pairs to be updated.', true) + ->param('data', [], new JSON(), 'Row data as JSON object. Include only columns and value pairs to be updated.', true, example: '{"username":"walter.obrien","email":"walter.obrien@example.com","fullName":"Walter O\'Brien","age":33,"isAdmin":false}') ->param('permissions', null, new Nullable(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) ->param('transactionId', null, new Nullable(new UID()), 'Transaction ID for staging the operation.', true) ->inject('requestTimestamp') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Upsert.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Upsert.php index 39a7abeb7c..0fbaa921cb 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Upsert.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Upsert.php @@ -61,7 +61,7 @@ class Upsert extends DocumentUpsert ->param('databaseId', '', new UID(), 'Database ID.') ->param('tableId', '', new UID(), 'Table ID.') ->param('rowId', '', new UID(), 'Row ID.') - ->param('data', [], new JSON(), 'Row data as JSON object. Include all required columns of the row to be created or updated.', true) + ->param('data', [], new JSON(), 'Row data as JSON object. Include all required columns of the row to be created or updated.', true, example: '{"username":"walter.obrien","email":"walter.obrien@example.com","fullName":"Walter O\'Brien","age":33,"isAdmin":false}') ->param('permissions', null, new Nullable(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) ->param('transactionId', null, new Nullable(new UID()), 'Transaction ID for staging the operation.', true) ->inject('requestTimestamp')