Choose own or inherited connection for a platform
integrations.platform_mode.change
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_operationconid: "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
platformenumrutaThe platform whose mode changes in this Account.
modeenumcuerpoown: the Account connects its own; inherited: it uses the workspace's connection.
Valores: own, inherited
Respuesta
changedbooleancleaned_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"
}'