diff --git a/CHANGELOG.md b/CHANGELOG.md
index cea83209..2adc7bbb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,28 @@
# Change Log
+## 12.0.0
+
+* Breaking: Renamed `AuthMethod` enum to `MethodId`
+* Breaking: Replaced `Projects.updateAuthStatus` with `Project.updateAuthMethod`
+* Breaking: Replaced `Projects.updateOAuth2` with per-provider methods on `Project` service (e.g. `updateOAuth2Google`, `updateOAuth2GitHub`)
+* Breaking: Replaced `Projects.updateMockNumbers` with `listMockPhones`, `createMockPhone`, `getMockPhone`, `updateMockPhone`, `deleteMockPhone` on `Project` service
+* Breaking: Replaced `Projects.createJWT` with `Project.createEphemeralKey`
+* Breaking: Moved `delete` from `Projects` to `Project` service
+* Breaking: Renamed `execution.read`/`execution.write` scopes to `executions.read`/`executions.write`
+* Breaking: Renamed `domainId` parameter to `invoiceId` in `domains.updatePurchase` and `domains.updateTransferIn`
+* Added: `Manager` service with `createBlock`, `deleteBlock`, `listBlocks` methods
+* Added: `listEmailTemplates`, `listOAuth2Providers`, `getOAuth2Provider`, `listPolicies`, `getPolicy` methods on `Project` service
+* Added: `createPlanEstimation` method on `Organizations` service
+* Added: `listOAuth2Providers` and `listProjectScopes` methods on `Console` service
+* Added: `fusionauth`, `keycloak`, `kick` to `OAuthProvider` enum
+* Added: `MethodId`, `PolicyId` enums
+* Added: `mocks.read`, `mocks.write`, `sessions.read` scopes
+* Added: `rust-1.83` runtime
+* Added: `backup-policy` to `AppwriteMigrationResource` enum
+* Added: Plural `ResourceType` values (`projects`, `functions`, `sites`, `databases`, `buckets`, `providers`, `topics`, `subscribers`, `messages`)
+* Added: Models for ephemeral keys, mock numbers, email templates, policies, and per-provider OAuth2 settings
+* Updated: `X-Appwrite-Response-Format` header to `1.9.3`
+
## 11.0.0
* Breaking: Moved SMTP, email template, and all policy methods from `Projects` to `Project` service
diff --git a/README.md b/README.md
index a428d98c..61a3c80d 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
# Appwrite Console SDK

-
+
[](https://travis-ci.com/appwrite/sdk-generator)
[](https://twitter.com/appwrite)
[](https://appwrite.io/discord)
@@ -33,7 +33,7 @@ import { Client, Account } from "@appwrite.io/console";
To install with a CDN (content delivery network) add the following scripts to the bottom of your
tag, but before you use any Appwrite services:
```html
-
+
```
diff --git a/docs/examples/console/list-o-auth-2-providers.md b/docs/examples/console/list-o-auth-2-providers.md
new file mode 100644
index 00000000..d26800b2
--- /dev/null
+++ b/docs/examples/console/list-o-auth-2-providers.md
@@ -0,0 +1,13 @@
+```javascript
+import { Client, Console } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const console = new Console(client);
+
+const result = await console.listOAuth2Providers();
+
+console.log(result);
+```
diff --git a/docs/examples/console/list-project-scopes.md b/docs/examples/console/list-project-scopes.md
new file mode 100644
index 00000000..b1cb8034
--- /dev/null
+++ b/docs/examples/console/list-project-scopes.md
@@ -0,0 +1,13 @@
+```javascript
+import { Client, Console } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const console = new Console(client);
+
+const result = await console.listProjectScopes();
+
+console.log(result);
+```
diff --git a/docs/examples/domains/update-purchase.md b/docs/examples/domains/update-purchase.md
index 2f3b6bed..b2165d20 100644
--- a/docs/examples/domains/update-purchase.md
+++ b/docs/examples/domains/update-purchase.md
@@ -8,7 +8,7 @@ const client = new Client()
const domains = new Domains(client);
const result = await domains.updatePurchase({
- domainId: '',
+ invoiceId: '',
organizationId: ''
});
diff --git a/docs/examples/domains/update-transfer-in.md b/docs/examples/domains/update-transfer-in.md
index 9dc3e260..04ea5201 100644
--- a/docs/examples/domains/update-transfer-in.md
+++ b/docs/examples/domains/update-transfer-in.md
@@ -8,7 +8,7 @@ const client = new Client()
const domains = new Domains(client);
const result = await domains.updateTransferIn({
- domainId: '',
+ invoiceId: '',
organizationId: ''
});
diff --git a/docs/examples/functions/create.md b/docs/examples/functions/create.md
index b45b0a1b..5cd33258 100644
--- a/docs/examples/functions/create.md
+++ b/docs/examples/functions/create.md
@@ -19,7 +19,7 @@ const result = await functions.create({
logging: false, // optional
entrypoint: '', // optional
commands: '', // optional
- scopes: [Scopes.SessionsWrite], // optional
+ scopes: [Scopes.ProjectRead], // optional
installationId: '', // optional
providerRepositoryId: '', // optional
providerBranch: '', // optional
diff --git a/docs/examples/functions/update.md b/docs/examples/functions/update.md
index f6f90ed7..cb77dea1 100644
--- a/docs/examples/functions/update.md
+++ b/docs/examples/functions/update.md
@@ -19,7 +19,7 @@ const result = await functions.update({
logging: false, // optional
entrypoint: '', // optional
commands: '', // optional
- scopes: [Scopes.SessionsWrite], // optional
+ scopes: [Scopes.ProjectRead], // optional
installationId: '', // optional
providerRepositoryId: '', // optional
providerBranch: '', // optional
diff --git a/docs/examples/manager/create-block.md b/docs/examples/manager/create-block.md
new file mode 100644
index 00000000..3515e471
--- /dev/null
+++ b/docs/examples/manager/create-block.md
@@ -0,0 +1,18 @@
+```javascript
+import { Client, Manager, ResourceType } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+
+const manager = new Manager(client);
+
+const result = await manager.createBlock({
+ projectId: '',
+ resourceType: ResourceType.Projects,
+ resourceId: '', // optional
+ reason: '', // optional
+ expiredAt: '2020-10-15T06:38:00.000+00:00' // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/manager/delete-block.md b/docs/examples/manager/delete-block.md
new file mode 100644
index 00000000..285eee03
--- /dev/null
+++ b/docs/examples/manager/delete-block.md
@@ -0,0 +1,16 @@
+```javascript
+import { Client, Manager, ResourceType } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+
+const manager = new Manager(client);
+
+const result = await manager.deleteBlock({
+ projectId: '',
+ resourceType: ResourceType.Projects,
+ resourceId: '' // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/manager/list-blocks.md b/docs/examples/manager/list-blocks.md
new file mode 100644
index 00000000..0bdd5c10
--- /dev/null
+++ b/docs/examples/manager/list-blocks.md
@@ -0,0 +1,14 @@
+```javascript
+import { Client, Manager } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+
+const manager = new Manager(client);
+
+const result = await manager.listBlocks({
+ projectId: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/manager/update-user-status.md b/docs/examples/manager/update-user-status.md
new file mode 100644
index 00000000..34af5753
--- /dev/null
+++ b/docs/examples/manager/update-user-status.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Manager } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+
+const manager = new Manager(client);
+
+const result = await manager.updateUserStatus({
+ status: false,
+ userId: '', // optional
+ email: '', // optional
+ reason: '' // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/organizations/create-plan-estimation.md b/docs/examples/organizations/create-plan-estimation.md
new file mode 100644
index 00000000..ee143ecc
--- /dev/null
+++ b/docs/examples/organizations/create-plan-estimation.md
@@ -0,0 +1,18 @@
+```javascript
+import { Client, Organizations } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const organizations = new Organizations(client);
+
+const result = await organizations.createPlanEstimation({
+ organizationId: '',
+ billingPlan: 'tier-0',
+ invites: [], // optional
+ couponId: '' // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/create-ephemeral-key.md b/docs/examples/project/create-ephemeral-key.md
new file mode 100644
index 00000000..e1514f60
--- /dev/null
+++ b/docs/examples/project/create-ephemeral-key.md
@@ -0,0 +1,16 @@
+```javascript
+import { Client, Project, Scopes } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.createEphemeralKey({
+ scopes: [Scopes.ProjectRead],
+ duration: 1
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/create-key.md b/docs/examples/project/create-key.md
index 1e4ba017..362d4ca0 100644
--- a/docs/examples/project/create-key.md
+++ b/docs/examples/project/create-key.md
@@ -10,7 +10,7 @@ const project = new Project(client);
const result = await project.createKey({
keyId: '',
name: '',
- scopes: [Scopes.SessionsWrite],
+ scopes: [Scopes.ProjectRead],
expire: '2020-10-15T06:38:00.000+00:00' // optional
});
diff --git a/docs/examples/projects/update-mock-numbers.md b/docs/examples/project/create-mock-phone.md
similarity index 52%
rename from docs/examples/projects/update-mock-numbers.md
rename to docs/examples/project/create-mock-phone.md
index 80099e15..eaf3dad6 100644
--- a/docs/examples/projects/update-mock-numbers.md
+++ b/docs/examples/project/create-mock-phone.md
@@ -1,15 +1,15 @@
```javascript
-import { Client, Projects } from "@appwrite.io/console";
+import { Client, Project } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
.setProject(''); // Your project ID
-const projects = new Projects(client);
+const project = new Project(client);
-const result = await projects.updateMockNumbers({
- projectId: '',
- numbers: []
+const result = await project.createMockPhone({
+ number: '+12065550100',
+ otp: ''
});
console.log(result);
diff --git a/docs/examples/project/delete-mock-phone.md b/docs/examples/project/delete-mock-phone.md
new file mode 100644
index 00000000..598c56aa
--- /dev/null
+++ b/docs/examples/project/delete-mock-phone.md
@@ -0,0 +1,15 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.deleteMockPhone({
+ number: '+12065550100'
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/delete.md b/docs/examples/project/delete.md
new file mode 100644
index 00000000..7e38d433
--- /dev/null
+++ b/docs/examples/project/delete.md
@@ -0,0 +1,13 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.delete();
+
+console.log(result);
+```
diff --git a/docs/examples/projects/delete.md b/docs/examples/project/get-mock-phone.md
similarity index 56%
rename from docs/examples/projects/delete.md
rename to docs/examples/project/get-mock-phone.md
index 10819f63..938b5915 100644
--- a/docs/examples/projects/delete.md
+++ b/docs/examples/project/get-mock-phone.md
@@ -1,14 +1,14 @@
```javascript
-import { Client, Projects } from "@appwrite.io/console";
+import { Client, Project } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
.setProject(''); // Your project ID
-const projects = new Projects(client);
+const project = new Project(client);
-const result = await projects.delete({
- projectId: ''
+const result = await project.getMockPhone({
+ number: '+12065550100'
});
console.log(result);
diff --git a/docs/examples/project/get-o-auth-2-provider.md b/docs/examples/project/get-o-auth-2-provider.md
new file mode 100644
index 00000000..a667c820
--- /dev/null
+++ b/docs/examples/project/get-o-auth-2-provider.md
@@ -0,0 +1,15 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.getOAuth2Provider({
+ provider: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/get-policy.md b/docs/examples/project/get-policy.md
new file mode 100644
index 00000000..be9b5151
--- /dev/null
+++ b/docs/examples/project/get-policy.md
@@ -0,0 +1,15 @@
+```javascript
+import { Client, Project, PolicyId } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.getPolicy({
+ policyId: PolicyId.PasswordDictionary
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/list-email-templates.md b/docs/examples/project/list-email-templates.md
new file mode 100644
index 00000000..ec206bf3
--- /dev/null
+++ b/docs/examples/project/list-email-templates.md
@@ -0,0 +1,16 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.listEmailTemplates({
+ queries: [], // optional
+ total: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/list-mock-phones.md b/docs/examples/project/list-mock-phones.md
new file mode 100644
index 00000000..d60a0570
--- /dev/null
+++ b/docs/examples/project/list-mock-phones.md
@@ -0,0 +1,16 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.listMockPhones({
+ queries: [], // optional
+ total: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/list-o-auth-2-providers.md b/docs/examples/project/list-o-auth-2-providers.md
new file mode 100644
index 00000000..f4e6545b
--- /dev/null
+++ b/docs/examples/project/list-o-auth-2-providers.md
@@ -0,0 +1,13 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.listOAuth2Providers();
+
+console.log(result);
+```
diff --git a/docs/examples/project/list-policies.md b/docs/examples/project/list-policies.md
new file mode 100644
index 00000000..d1d84241
--- /dev/null
+++ b/docs/examples/project/list-policies.md
@@ -0,0 +1,16 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.listPolicies({
+ queries: [], // optional
+ total: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-auth-method.md b/docs/examples/project/update-auth-method.md
new file mode 100644
index 00000000..802d1d2b
--- /dev/null
+++ b/docs/examples/project/update-auth-method.md
@@ -0,0 +1,16 @@
+```javascript
+import { Client, Project, MethodId } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateAuthMethod({
+ methodId: MethodId.EmailPassword,
+ enabled: false
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-key.md b/docs/examples/project/update-key.md
index 59aae489..3d3282d4 100644
--- a/docs/examples/project/update-key.md
+++ b/docs/examples/project/update-key.md
@@ -10,7 +10,7 @@ const project = new Project(client);
const result = await project.updateKey({
keyId: '',
name: '',
- scopes: [Scopes.SessionsWrite],
+ scopes: [Scopes.ProjectRead],
expire: '2020-10-15T06:38:00.000+00:00' // optional
});
diff --git a/docs/examples/project/update-mock-phone.md b/docs/examples/project/update-mock-phone.md
new file mode 100644
index 00000000..88204665
--- /dev/null
+++ b/docs/examples/project/update-mock-phone.md
@@ -0,0 +1,16 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateMockPhone({
+ number: '+12065550100',
+ otp: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-amazon.md b/docs/examples/project/update-o-auth-2-amazon.md
new file mode 100644
index 00000000..41505151
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-amazon.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Amazon({
+ clientId: '', // optional
+ clientSecret: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-apple.md b/docs/examples/project/update-o-auth-2-apple.md
new file mode 100644
index 00000000..088f42fa
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-apple.md
@@ -0,0 +1,19 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Apple({
+ serviceId: '', // optional
+ keyId: '', // optional
+ teamId: '', // optional
+ p8File: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-auth-0.md b/docs/examples/project/update-o-auth-2-auth-0.md
new file mode 100644
index 00000000..aae061ce
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-auth-0.md
@@ -0,0 +1,18 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Auth0({
+ clientId: '', // optional
+ clientSecret: '', // optional
+ endpoint: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-authentik.md b/docs/examples/project/update-o-auth-2-authentik.md
new file mode 100644
index 00000000..b59b7ced
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-authentik.md
@@ -0,0 +1,18 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Authentik({
+ clientId: '', // optional
+ clientSecret: '', // optional
+ endpoint: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-autodesk.md b/docs/examples/project/update-o-auth-2-autodesk.md
new file mode 100644
index 00000000..675caa2a
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-autodesk.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Autodesk({
+ clientId: '', // optional
+ clientSecret: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/projects/update-o-auth-2.md b/docs/examples/project/update-o-auth-2-bitbucket.md
similarity index 51%
rename from docs/examples/projects/update-o-auth-2.md
rename to docs/examples/project/update-o-auth-2-bitbucket.md
index 74ba246a..98b39d67 100644
--- a/docs/examples/projects/update-o-auth-2.md
+++ b/docs/examples/project/update-o-auth-2-bitbucket.md
@@ -1,16 +1,14 @@
```javascript
-import { Client, Projects, OAuthProvider } from "@appwrite.io/console";
+import { Client, Project } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
.setProject(''); // Your project ID
-const projects = new Projects(client);
+const project = new Project(client);
-const result = await projects.updateOAuth2({
- projectId: '',
- provider: OAuthProvider.Amazon,
- appId: '', // optional
+const result = await project.updateOAuth2Bitbucket({
+ key: '', // optional
secret: '', // optional
enabled: false // optional
});
diff --git a/docs/examples/project/update-o-auth-2-bitly.md b/docs/examples/project/update-o-auth-2-bitly.md
new file mode 100644
index 00000000..572d6dcf
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-bitly.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Bitly({
+ clientId: '', // optional
+ clientSecret: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-box.md b/docs/examples/project/update-o-auth-2-box.md
new file mode 100644
index 00000000..a3010c05
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-box.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Box({
+ clientId: '', // optional
+ clientSecret: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-dailymotion.md b/docs/examples/project/update-o-auth-2-dailymotion.md
new file mode 100644
index 00000000..40912058
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-dailymotion.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Dailymotion({
+ apiKey: '', // optional
+ apiSecret: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-discord.md b/docs/examples/project/update-o-auth-2-discord.md
new file mode 100644
index 00000000..c289e4b4
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-discord.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Discord({
+ clientId: '', // optional
+ clientSecret: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-disqus.md b/docs/examples/project/update-o-auth-2-disqus.md
new file mode 100644
index 00000000..b356ce7f
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-disqus.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Disqus({
+ publicKey: '', // optional
+ secretKey: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-dropbox.md b/docs/examples/project/update-o-auth-2-dropbox.md
new file mode 100644
index 00000000..f088118a
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-dropbox.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Dropbox({
+ appKey: '', // optional
+ appSecret: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-etsy.md b/docs/examples/project/update-o-auth-2-etsy.md
new file mode 100644
index 00000000..469c0a08
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-etsy.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Etsy({
+ keyString: '', // optional
+ sharedSecret: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-facebook.md b/docs/examples/project/update-o-auth-2-facebook.md
new file mode 100644
index 00000000..1af18fbd
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-facebook.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Facebook({
+ appId: '', // optional
+ appSecret: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-figma.md b/docs/examples/project/update-o-auth-2-figma.md
new file mode 100644
index 00000000..e1b35875
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-figma.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Figma({
+ clientId: '', // optional
+ clientSecret: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-fusion-auth.md b/docs/examples/project/update-o-auth-2-fusion-auth.md
new file mode 100644
index 00000000..da29e909
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-fusion-auth.md
@@ -0,0 +1,18 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2FusionAuth({
+ clientId: '', // optional
+ clientSecret: '', // optional
+ endpoint: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-git-hub.md b/docs/examples/project/update-o-auth-2-git-hub.md
new file mode 100644
index 00000000..f1dbb617
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-git-hub.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2GitHub({
+ clientId: '', // optional
+ clientSecret: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-gitlab.md b/docs/examples/project/update-o-auth-2-gitlab.md
new file mode 100644
index 00000000..5191d013
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-gitlab.md
@@ -0,0 +1,18 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Gitlab({
+ applicationId: '', // optional
+ secret: '', // optional
+ endpoint: 'https://example.com', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-google.md b/docs/examples/project/update-o-auth-2-google.md
new file mode 100644
index 00000000..a6d2cbf6
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-google.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Google({
+ clientId: '', // optional
+ clientSecret: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-keycloak.md b/docs/examples/project/update-o-auth-2-keycloak.md
new file mode 100644
index 00000000..7121691d
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-keycloak.md
@@ -0,0 +1,19 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Keycloak({
+ clientId: '', // optional
+ clientSecret: '', // optional
+ endpoint: '', // optional
+ realmName: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-kick.md b/docs/examples/project/update-o-auth-2-kick.md
new file mode 100644
index 00000000..1bf99d6b
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-kick.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Kick({
+ clientId: '', // optional
+ clientSecret: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-linkedin.md b/docs/examples/project/update-o-auth-2-linkedin.md
new file mode 100644
index 00000000..2ba49a51
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-linkedin.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Linkedin({
+ clientId: '', // optional
+ primaryClientSecret: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-microsoft.md b/docs/examples/project/update-o-auth-2-microsoft.md
new file mode 100644
index 00000000..3e10286a
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-microsoft.md
@@ -0,0 +1,18 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Microsoft({
+ applicationId: '', // optional
+ applicationSecret: '', // optional
+ tenant: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-notion.md b/docs/examples/project/update-o-auth-2-notion.md
new file mode 100644
index 00000000..7c9c0f09
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-notion.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Notion({
+ oauthClientId: '', // optional
+ oauthClientSecret: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-oidc.md b/docs/examples/project/update-o-auth-2-oidc.md
new file mode 100644
index 00000000..29b8536e
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-oidc.md
@@ -0,0 +1,21 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Oidc({
+ clientId: '', // optional
+ clientSecret: '', // optional
+ wellKnownURL: 'https://example.com', // optional
+ authorizationURL: 'https://example.com', // optional
+ tokenUrl: 'https://example.com', // optional
+ userInfoUrl: 'https://example.com', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-okta.md b/docs/examples/project/update-o-auth-2-okta.md
new file mode 100644
index 00000000..6621728e
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-okta.md
@@ -0,0 +1,19 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Okta({
+ clientId: '', // optional
+ clientSecret: '', // optional
+ domain: '', // optional
+ authorizationServerId: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-paypal-sandbox.md b/docs/examples/project/update-o-auth-2-paypal-sandbox.md
new file mode 100644
index 00000000..d69e3e05
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-paypal-sandbox.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2PaypalSandbox({
+ clientId: '', // optional
+ secretKey: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-paypal.md b/docs/examples/project/update-o-auth-2-paypal.md
new file mode 100644
index 00000000..4e41a324
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-paypal.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Paypal({
+ clientId: '', // optional
+ secretKey: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-podio.md b/docs/examples/project/update-o-auth-2-podio.md
new file mode 100644
index 00000000..247b96cc
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-podio.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Podio({
+ clientId: '', // optional
+ clientSecret: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-salesforce.md b/docs/examples/project/update-o-auth-2-salesforce.md
new file mode 100644
index 00000000..8472e309
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-salesforce.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Salesforce({
+ customerKey: '', // optional
+ customerSecret: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-slack.md b/docs/examples/project/update-o-auth-2-slack.md
new file mode 100644
index 00000000..7258f278
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-slack.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Slack({
+ clientId: '', // optional
+ clientSecret: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-spotify.md b/docs/examples/project/update-o-auth-2-spotify.md
new file mode 100644
index 00000000..796fd5cb
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-spotify.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Spotify({
+ clientId: '', // optional
+ clientSecret: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-stripe.md b/docs/examples/project/update-o-auth-2-stripe.md
new file mode 100644
index 00000000..6faf6dc1
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-stripe.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Stripe({
+ clientId: '', // optional
+ apiSecretKey: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-tradeshift-sandbox.md b/docs/examples/project/update-o-auth-2-tradeshift-sandbox.md
new file mode 100644
index 00000000..d7eabe6e
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-tradeshift-sandbox.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2TradeshiftSandbox({
+ oauth2ClientId: '', // optional
+ oauth2ClientSecret: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-tradeshift.md b/docs/examples/project/update-o-auth-2-tradeshift.md
new file mode 100644
index 00000000..90a18465
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-tradeshift.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Tradeshift({
+ oauth2ClientId: '', // optional
+ oauth2ClientSecret: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-twitch.md b/docs/examples/project/update-o-auth-2-twitch.md
new file mode 100644
index 00000000..0fc86b17
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-twitch.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Twitch({
+ clientId: '', // optional
+ clientSecret: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-word-press.md b/docs/examples/project/update-o-auth-2-word-press.md
new file mode 100644
index 00000000..1925bdd2
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-word-press.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2WordPress({
+ clientId: '', // optional
+ clientSecret: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-yahoo.md b/docs/examples/project/update-o-auth-2-yahoo.md
new file mode 100644
index 00000000..07af9e12
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-yahoo.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Yahoo({
+ clientId: '', // optional
+ clientSecret: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-yandex.md b/docs/examples/project/update-o-auth-2-yandex.md
new file mode 100644
index 00000000..b43566b7
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-yandex.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Yandex({
+ clientId: '', // optional
+ clientSecret: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-zoho.md b/docs/examples/project/update-o-auth-2-zoho.md
new file mode 100644
index 00000000..f0113d05
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-zoho.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Zoho({
+ clientId: '', // optional
+ clientSecret: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2-zoom.md b/docs/examples/project/update-o-auth-2-zoom.md
new file mode 100644
index 00000000..531a66a6
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2-zoom.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2Zoom({
+ clientId: '', // optional
+ clientSecret: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/project/update-o-auth-2x.md b/docs/examples/project/update-o-auth-2x.md
new file mode 100644
index 00000000..8510e6e5
--- /dev/null
+++ b/docs/examples/project/update-o-auth-2x.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Project } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const project = new Project(client);
+
+const result = await project.updateOAuth2X({
+ customerKey: '', // optional
+ secretKey: '', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/projects/create-jwt.md b/docs/examples/projects/create-jwt.md
deleted file mode 100644
index 2c8929c9..00000000
--- a/docs/examples/projects/create-jwt.md
+++ /dev/null
@@ -1,17 +0,0 @@
-```javascript
-import { Client, Projects, Scopes } from "@appwrite.io/console";
-
-const client = new Client()
- .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
- .setProject(''); // Your project ID
-
-const projects = new Projects(client);
-
-const result = await projects.createJWT({
- projectId: '