> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# MarkConnectionAsDisconnected

# Package: conferencing

# Namespace: ConferencingService

# Method link: https://dev.wix.com/docs/api-reference/business-management/calendar/conferencing/conference-v1/mark-connection-as-disconnected.md

## Permission Scopes:
Manage_Wix_Rentals_App_Forms_submissions: SCOPE.RENTALS.MANAGE

## Introduction

Disconnects a resource from a conferencing provider.

Revokes OAuth tokens and cleans up provider-side resources. For custom links, removes the stored link.

---

## REST API

### Schema

```
 Method: markConnectionAsDisconnected
 Description: Disconnects a resource from a conferencing provider.  Revokes OAuth tokens and cleans up provider-side resources. For custom links, removes the stored link.
 URL: https://www.wixapis.com/calendar/v3/conferences/v1/connections/mark-as-disconnected
 Method: POST
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  appId
 Method parameters: 
   param name: appId | type: appId | description: GUID of the conferencing provider app whose connection is being disconnected. | required: true | validation: format GUID
   param name: resourceId | type: resourceId | description: GUID of the resource whose connection is being disconnected.  When absent, the request targets the business resource (`4e0579a5-491e-4e70-a872-d097eed6e520`).  | validation: format GUID
 Return type: MarkConnectionAsDisconnectedResponse
  - name: connection | type: Connection | description: Disconnected connection.  
     - ONE-OF: 
        - name: oauthDetails | type: OAuthConnectionDetails | description: Set when `connectionMethod` is `OAUTH`.  
           - name: email | type: string | description: Email address of the authorized provider account.  Returned empty for callers who aren't authorized to view connections owned by other resources.  | read-only: true | validation: maxLength 320
        - name: credentialsDetails | type: CredentialsConnectionDetails | description: Set when `connectionMethod` is `CREDENTIALS`.  
           - name: userName | type: string | description: Username, often an email address, of the credentialed account.  | read-only: true | validation: maxLength 500
        - name: customDetails | type: CustomConnectionDetails | description: Set when `connectionMethod` is `CUSTOM`.  
           - name: conferenceUrl | type: string | description: Static conference URL.  | read-only: true | validation: maxLength 2048
           - name: description | type: string | description: Human-readable description of the link. For example, `Personal Zoom Room`.  | validation: maxLength 500
           - name: password | type: string | description: Conference password. Returned empty for callers who aren't authorized to view it.  | validation: maxLength 500
     - name: id | type: string | description: Connection GUID. Generated by the provider.  | read-only: true | validation: format GUID
     - name: status | type: ConnectionStatus | description: Connection status.  
         - enum:
         -     CONNECTED: The connection is usable now.
         -     DISCONNECTED: The user or your implementation intentionally disconnected the account.
         -     ERROR: The connection was established but is now broken, for example tokens were revoked or expired externally, and needs reconnection.
     - name: connectionMethod | type: ConnectionMethod | description: Method used to establish this connection.  
         - enum:
         -     OAUTH: OAuth authorization flow.
         -     CREDENTIALS: Username and password authentication.
         -     CUSTOM: Static custom link: a URL with an optional password and description, stored by Wix.
     - name: appId | type: string | description: GUID of the conferencing provider app.  | validation: format GUID
     - name: appName | type: string | description: Display name of the provider app. For example, `Zoom` or `Google Meet`.  | validation: maxLength 200
     - name: connectedDate | type: string | description: Date and time the connection was established, in UTC.  | read-only: true | validation: format date-time
     - name: resourceId | type: string | description: GUID of the resource. Replaces `accountOwnerId`.  | read-only: true | validation: format GUID

 Possible Errors:
   HTTP Code: 403 | Status Code: PERMISSION_DENIED | Application Code: PERMISSION_DENIED | Description: The identity used to call the method doesn't have the required permissions to manage this resource.
   HTTP Code: 404 | Status Code: NOT_FOUND | Application Code: PROVIDER_NOT_FOUND | Description: Couldn't find the conferencing provider.
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: RESOURCE_NOT_CONNECTED | Description: The resource isn't connected to a conferencing provider.


```

### Examples

### Disconnect a resource from Zoom
Disconnects a resource's Zoom connection.

```curl
curl -X POST \
'https://www.wixapis.com/calendar/v3/conferences/v1/connections/mark-as-disconnected' \
-H 'Authorization: <AUTH>' \
-H 'Content-Type: application/json' \
-d '{
  "appId": "c6d111d1-1a8d-49f0-a78c-4f1823fb6592",
  "resourceId": "a1f3c9e2-6b7d-4e58-9c0a-2d4b8e7f1356"
}'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.calendar.conferencing.markConnectionAsDisconnected(appId, options)
 Description: Disconnects a resource from a conferencing provider.  Revokes OAuth tokens and cleans up provider-side resources. For custom links, removes the stored link.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  appId
 Method parameters: 
   param name: appId | type: string | description: GUID of the conferencing provider app whose connection is being disconnected. | required: true | validation: format GUID
   param name: options | type: MarkConnectionAsDisconnectedOptions  none  
        - name: resourceId | type: string | description: GUID of the resource whose connection is being disconnected.  When absent, the request targets the business resource (`4e0579a5-491e-4e70-a872-d097eed6e520`).  | validation: format GUID
 Return type: PROMISE<MarkConnectionAsDisconnectedResponse>
  - name: connection | type: Connection | description: Disconnected connection.  
     - ONE-OF: 
        - name: oauthDetails | type: OAuthConnectionDetails | description: Set when `connectionMethod` is `OAUTH`.  
           - name: email | type: string | description: Email address of the authorized provider account.  Returned empty for callers who aren't authorized to view connections owned by other resources.  | read-only: true | validation: maxLength 320
        - name: credentialsDetails | type: CredentialsConnectionDetails | description: Set when `connectionMethod` is `CREDENTIALS`.  
           - name: userName | type: string | description: Username, often an email address, of the credentialed account.  | read-only: true | validation: maxLength 500
        - name: customDetails | type: CustomConnectionDetails | description: Set when `connectionMethod` is `CUSTOM`.  
           - name: conferenceUrl | type: string | description: Static conference URL.  | read-only: true | validation: maxLength 2048
           - name: description | type: string | description: Human-readable description of the link. For example, `Personal Zoom Room`.  | validation: maxLength 500
           - name: password | type: string | description: Conference password. Returned empty for callers who aren't authorized to view it.  | validation: maxLength 500
     - name: _id | type: string | description: Connection GUID. Generated by the provider.  | read-only: true | validation: format GUID
     - name: status | type: ConnectionStatus | description: Connection status.  
         - enum:
         -     CONNECTED: The connection is usable now.
         -     DISCONNECTED: The user or your implementation intentionally disconnected the account.
         -     ERROR: The connection was established but is now broken, for example tokens were revoked or expired externally, and needs reconnection.
     - name: connectionMethod | type: ConnectionMethod | description: Method used to establish this connection.  
         - enum:
         -     OAUTH: OAuth authorization flow.
         -     CREDENTIALS: Username and password authentication.
         -     CUSTOM: Static custom link: a URL with an optional password and description, stored by Wix.
     - name: appId | type: string | description: GUID of the conferencing provider app.  | validation: format GUID
     - name: appName | type: string | description: Display name of the provider app. For example, `Zoom` or `Google Meet`.  | validation: maxLength 200
     - name: connectedDate | type: Date | description: Date and time the connection was established, in UTC.  | read-only: true 
     - name: resourceId | type: string | description: GUID of the resource. Replaces `accountOwnerId`.  | read-only: true | validation: format GUID

 Possible Errors:
   HTTP Code: 403 | Status Code: PERMISSION_DENIED | Application Code: PERMISSION_DENIED | Description: The identity used to call the method doesn't have the required permissions to manage this resource.
   HTTP Code: 404 | Status Code: NOT_FOUND | Application Code: PROVIDER_NOT_FOUND | Description: Couldn't find the conferencing provider.
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: RESOURCE_NOT_CONNECTED | Description: The resource isn't connected to a conferencing provider.


```

### Examples

### Disconnect a resource from Zoom
Disconnects a resource's Zoom connection.

```javascript
import { conferencing } from "@wix/calendar";

async function markConnectionAsDisconnected() {
  const response = await conferencing.markConnectionAsDisconnected("c6d111d1-1a8d-49f0-a78c-4f1823fb6592", {
    resourceId: "a1f3c9e2-6b7d-4e58-9c0a-2d4b8e7f1356",
  });
}

/* Promise resolves to:
 * {
 *   "connection": {
 *     "_id": "a1f3c9e2-6b7d-4e58-9c0a-2d4b8e7f1356",
 *     "status": "DISCONNECTED",
 *     "connectionMethod": "OAUTH",
 *     "appId": "c6d111d1-1a8d-49f0-a78c-4f1823fb6592",
 *     "appName": "Zoom",
 *     "connectedDate": "2026-11-02T08:14:22.512Z",
 *     "resourceId": "a1f3c9e2-6b7d-4e58-9c0a-2d4b8e7f1356",
 *     "oauthDetails": {
 *       "email": "dana.levi@example.com"
 *     }
 *   }
 * }
 */

```

### markConnectionAsDisconnected (self-managed)
Self-managed SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { conferencing } from '@wix/calendar';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { conferencing },
  // Include the auth strategy and host as relevant
});


async function markConnectionAsDisconnected(appId,options) {
  const response = await myWixClient.conferencing.markConnectionAsDisconnected(appId,options);
};
```

---