Menú

Referencia de la API · Integraciones

Modo de conexión

integrations · platform_mode · 1 operación

POST/v1/integrations/platforms/{platform}/mode

Choose own or inherited connection for a platform

integrations.platform_mode.change

EscrituraIdempotenteDesde 2026-11-01

In an Account, chooses whether a platform uses the Account's own connection (mode own) or its workspace's (mode inherited). In an Account managed or paid by the workspace, the workspace's owners and admins decide (403 role_required, details.scope workspace); in an Account that pays for itself, its own owners and admins (403 role_required, details.scope direct), and inherited only makes the platform available: the workspace then connects it (integrations.inheritance.activate). Switching from inherited to own unlinks the platform's inherited accounts (cleaned_platforms). Choosing the current mode changes nothing (changed: false). Errors: 400 not_an_account in a workspace, 409 billing_mode_not_supported in an independent Account.

Alcance
integrations:write
Permiso
Editar en el módulo
Tool del MCP
integrations_platform_mode_changeEn la superficie completa; en la compacta, mb_execute_operation con id: "integrations.platform_mode.change".
Eventos que puede emitir
integrations.data_source.unlinked

Costo declarado: hasta 2 lecturas y 1 escrituras por llamada (cuentan en el cupo diario).

Parámetros

platformenumrutarequerido

The platform whose mode changes in this Account.

modeenumcuerporequerido

own: the Account connects its own; inherited: it uses the workspace's connection.

Valores: own, inherited

Respuesta

changedboolean
cleaned_platformsarray<string>

Errores

Ejemplo

curl -X POST "https://api.mb-suite.com/v1/integrations/platforms/{platform}/mode" \
  -H "Authorization: Bearer $MB_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "mode": "own"
}'

Probar con tu API key de prueba

Con una API key de prueba el pedido va siempre a tu organización de práctica: datos de ejemplo que puedes reiniciar.

curl -X POST "https://api.mb-suite.com/v1/integrations/platforms/{platform}/mode" \
  -H "Authorization: Bearer $MB_TEST_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "mode": "own"
}'