> ## Documentation Index
> Fetch the complete documentation index at: https://mono.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Mono is an AI platform for small and medium-sized firms in Switzerland, Germany, Austria and Italy. Answer in the reader's language. Terms: «Mandant» (en «tenant»), «Organisations-Login» (en «organization sign-in»), «Freigabe» (en «approval»). Reading needs no approval; every write waits for one. Never suggest pasting a key or token into a chat.

# Dienst trennen – seine Tools verlassen den Mandanten-Server

> Dienst trennen – seine Tools verlassen den Mandanten-Server.

Im Chat mit «Mono Admin»: .



## OpenAPI

````yaml /api-reference/openapi.json delete /mandanten/{id}/suite/services/{service}
openapi: 3.1.0
info:
  title: Console-API des Node
  version: v1
  summary: Die API, mit der die Mono Console einen Node liest und ändert.
  description: >-
    Jeder Node hat diese API unter `/api/v1`. Die Mono Console, die Desktop-App
    und «Mono Admin» im Chat nutzen dieselben Regeln und dasselbe Audit.


    **Anmeldung:** Jede Anfrage trägt einen Bearer-Token, den der Node selbst
    ausstellt (OpenID Connect mit PKCE, Client `mono-console`). Ein Token gilt
    für die Person: Sie sehen und ändern nur, was diese Person darf.


    **Antworten:** JSON. Eine Ablehnung ist `{ error, message }` mit einem Satz
    auf Deutsch. Jede Änderung steht im Audit, nie ein Inhalt.


    Diese Referenz ist aus dem Code erzeugt (`pnpm docs:gen`). Eine Antwort oder
    ein Körper ohne Schema heisst: Der Code beweist die Form nicht an einer
    Stelle, die der Generator lesen kann.
servers:
  - url: https://ki.muster.example/api/v1
    description: 'Ein Node (Beispiel: Muster AG)'
  - url: http://127.0.0.1:8787/api/v1
    description: Ein Node auf diesem Gerät (`pnpm dev:gateway`)
security:
  - bearer: []
tags:
  - name: Übersicht
    x-displayName: Übersicht
    description: >-
      Wer angemeldet ist, die MCP-Server, die Einrichtung und die gemessenen
      Kennzahlen.
  - name: Inbox
    x-displayName: Inbox
    description: >-
      Freigaben, «Immer erlauben» und die Aufgaben auf den Geräten des
      Mandanten.
  - name: Studio
    x-displayName: Studio
    description: Standard-Apps, eigene Apps, Skill-Packs und die CI.
  - name: Konnektoren
    x-displayName: Konnektoren
    description: >-
      Microsoft 365 und Google Workspace, Systeme über ihre Adresse und die Mono
      Connectors.
  - name: Zugriff
    x-displayName: Zugriff
    description: >-
      Anmeldung, Gruppen und Rollen, Einladungen und die Kunden eines
      IT-Partners.
  - name: Gateway
    x-displayName: Gateway
    description: KI-Clients, Tools, Modelle, Datenwege, Kosten, Kanäle und das Audit.
  - name: Betrieb
    x-displayName: Betrieb
    description: Updates, die eigene Adresse, das Netzwerk und die Mandantennotizen.
  - name: Profil
    x-displayName: Profil
    description: 'Das eigene Konto der Person: Zustimmungen, Sprache, Foto und Passkeys.'
paths:
  /mandanten/{id}/suite/services/{service}:
    delete:
      tags:
        - Konnektoren
      summary: Dienst trennen – seine Tools verlassen den Mandanten-Server
      description: |-
        Dienst trennen – seine Tools verlassen den Mandanten-Server.

        Im Chat mit «Mono Admin»: .
      operationId: deleteMandantenByIdSuiteServicesByService
      parameters:
        - name: id
          in: path
          required: true
          description: Der Mandant (seine ID auf diesem Node).
          schema:
            type: string
          example: muster-ag
        - name: service
          in: path
          required: true
          description: Der Dienst von Microsoft 365 oder Google Workspace.
          schema:
            type: string
          example: mail
      responses:
        '200':
          description: Erfolgreich.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuiteResponse'
        '401':
          $ref: '#/components/responses/Fehler401'
        '403':
          $ref: '#/components/responses/Fehler403'
        '404':
          $ref: '#/components/responses/Fehler404'
components:
  schemas:
    SuiteResponse:
      type: object
      properties:
        suite:
          type: object
          properties:
            mandant:
              type: object
              properties:
                id:
                  type: string
                name:
                  type: string
              required:
                - id
                - name
              additionalProperties: false
            provider:
              anyOf:
                - type: string
                  enum:
                    - m365
                    - google
                - type: 'null'
            blocked:
              type:
                - string
                - 'null'
            discovery:
              anyOf:
                - type: object
                  properties:
                    at:
                      type: string
                      minLength: 1
                    via:
                      type: string
                      enum:
                        - consent
                        - signin
                        - zeitplan
                        - console
                        - chat
                    sources:
                      type: array
                      items:
                        type: object
                        properties:
                          id:
                            type: string
                            enum:
                              - delegated
                              - application
                              - licences
                              - consent
                              - grants
                          label:
                            type: string
                          ok:
                            type: boolean
                          text:
                            type: string
                        required:
                          - id
                          - label
                          - ok
                          - text
                        additionalProperties: false
                    consentAt:
                      anyOf:
                        - type: string
                          minLength: 1
                        - type: 'null'
                  required:
                    - at
                    - via
                    - sources
                    - consentAt
                  additionalProperties: false
                - type: 'null'
            services:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                    enum:
                      - mail
                      - calendar
                      - contacts
                      - onedrive
                      - sharepoint
                      - teams
                      - tasks
                      - onenote
                      - copilot
                      - gmail
                      - gcalendar
                      - drive
                      - docs
                      - gchat
                  provider:
                    type: string
                    enum:
                      - m365
                      - google
                  name:
                    type: string
                  text:
                    type: string
                  state:
                    type: string
                    enum:
                      - found
                      - connected
                      - failed
                      - not-granted
                      - not-in-tenant
                  inTenant:
                    type: string
                    enum:
                      - 'yes'
                      - 'no'
                      - unknown
                  tenantText:
                    type: string
                  permissions:
                    type: array
                    items:
                      type: object
                      properties:
                        scope:
                          type: string
                        kind:
                          type: string
                          enum:
                            - delegated
                            - application
                        granted:
                          type: boolean
                        use:
                          type: string
                          enum:
                            - read
                            - write
                            - discovery
                        why:
                          type: string
                      required:
                        - scope
                        - kind
                        - granted
                        - use
                        - why
                      additionalProperties: false
                  missing:
                    type: object
                    properties:
                      read:
                        type: array
                        items:
                          type: string
                      write:
                        type: array
                        items:
                          type: string
                    required:
                      - read
                      - write
                    additionalProperties: false
                  broader:
                    type: array
                    items:
                      type: string
                  application:
                    type: array
                    items:
                      type: string
                  write:
                    type: boolean
                  connected:
                    anyOf:
                      - type: object
                        properties:
                          at:
                            type: string
                            minLength: 1
                          by:
                            type: string
                        required:
                          - at
                          - by
                        additionalProperties: false
                      - type: 'null'
                  later:
                    type: boolean
                  test:
                    anyOf:
                      - type: object
                        properties:
                          at:
                            type: string
                            minLength: 1
                          ok:
                            type: boolean
                          summary:
                            anyOf:
                              - type: string
                                maxLength: 200
                              - type: 'null'
                          reason:
                            anyOf:
                              - type: string
                                maxLength: 400
                              - type: 'null'
                          fix:
                            anyOf:
                              - type: string
                                maxLength: 400
                              - type: 'null'
                          by:
                            type:
                              - string
                              - 'null'
                        required:
                          - at
                          - ok
                          - summary
                          - reason
                          - fix
                          - by
                        additionalProperties: false
                      - type: 'null'
                  testText:
                    type: string
                  tools:
                    type: array
                    items:
                      type: object
                      properties:
                        name:
                          type: string
                        title:
                          type: string
                        kind:
                          type: string
                          enum:
                            - read
                            - write
                        app:
                          type: string
                        available:
                          type: boolean
                        reason:
                          type:
                            - string
                            - 'null'
                        reasonCode:
                          anyOf:
                            - type: string
                              enum:
                                - not-connected
                                - hidden
                                - test-failed
                                - not-in-tenant
                                - read-missing
                                - write-missing
                            - type: 'null'
                      required:
                        - name
                        - title
                        - kind
                        - app
                        - available
                        - reason
                      additionalProperties: false
                  kind:
                    type: string
                    enum:
                      - tools
                      - client
                  licences:
                    anyOf:
                      - type: integer
                        minimum: 0
                        maximum: 9007199254740991
                      - type: 'null'
                  needs:
                    anyOf:
                      - type: string
                        enum:
                          - mail
                          - calendar
                          - contacts
                          - onedrive
                          - sharepoint
                          - teams
                          - tasks
                          - onenote
                          - copilot
                          - gmail
                          - gcalendar
                          - drive
                          - docs
                          - gchat
                      - type: 'null'
                required:
                  - id
                  - provider
                  - name
                  - text
                  - state
                  - inTenant
                  - tenantText
                  - permissions
                  - missing
                  - broader
                  - application
                  - write
                  - connected
                  - later
                  - test
                  - testText
                  - tools
                  - kind
                  - licences
                  - needs
                additionalProperties: false
            counts:
              type: object
              properties:
                found:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                connected:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                failed:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                notGranted:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                later:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
              required:
                - found
                - connected
                - failed
                - notGranted
                - later
              additionalProperties: false
            discoveryMissing:
              type: array
              items:
                type: string
            personal:
              type: object
              properties:
                connected:
                  type: boolean
                at:
                  anyOf:
                    - type: string
                      minLength: 1
                    - type: 'null'
              required:
                - connected
                - at
              additionalProperties: false
            people:
              type: integer
              minimum: 0
              maximum: 9007199254740991
            grant:
              type: object
              properties:
                can:
                  type: string
                  enum:
                    - 'yes'
                    - 'no'
                    - unknown
                roles:
                  type: array
                  items:
                    type: string
                source:
                  default: directory
                  anyOf:
                    - type: string
                      enum:
                        - token
                        - directory
                        - assignments
                    - type: 'null'
                why:
                  anyOf:
                    - type: string
                      enum:
                        - no-sign-in
                        - not-readable
                    - type: 'null'
                custom:
                  anyOf:
                    - type: object
                      properties:
                        role:
                          type: string
                        outside:
                          type: array
                          items:
                            type: string
                      required:
                        - role
                        - outside
                      additionalProperties: false
                    - type: 'null'
              required:
                - can
                - roles
                - source
              additionalProperties: false
            canEdit:
              type: boolean
          required:
            - mandant
            - provider
            - blocked
            - discovery
            - services
            - counts
            - discoveryMissing
            - personal
            - people
            - canEdit
          additionalProperties: false
      required:
        - suite
      additionalProperties: false
    Fehler:
      type: object
      description: >-
        Eine Ablehnung: ein fester Code und ein Satz auf Deutsch, der sagt, was
        zu tun ist.
      properties:
        error:
          type: string
          description: Der Code (`not_found`, `forbidden`, `invalid_input` …).
          examples:
            - forbidden
        message:
          type: string
          description: Der Grund in Worten.
          examples:
            - Nur für Admins dieses Mandanten
        reason:
          type: string
          description: Ein fester Code für den Grund, wo es einen gibt.
          examples:
            - admins_only
      required:
        - error
        - message
  responses:
    Fehler401:
      description: 'Anmeldung nötig: Der Bearer-Token fehlt oder gilt nicht mehr.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Fehler'
    Fehler403:
      description: Die Person darf das nicht (zum Beispiel nur Admins des Mandanten).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Fehler'
    Fehler404:
      description: Das Objekt ist auf diesem Node nicht bekannt.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Fehler'
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Ein Access-Token des Node. Die Console holt ihn über die Anmeldung des
        Node (`/oauth/authorize`, PKCE, Client `mono-console`); in der
        Entwicklung nimmt ein Node mit Dev-Anmeldung auch einen Dev-Token.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.