> ## 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.

# Verknüpfungen setzen, Vorschläge übernehmen

> Verknüpfungen setzen, Vorschläge übernehmen.

Im Chat mit «Mono Admin»: `access_change`.



## OpenAPI

````yaml /api-reference/openapi.json put /mandanten/{id}/access
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}/access:
    put:
      tags:
        - Zugriff
      summary: Verknüpfungen setzen, Vorschläge übernehmen
      description: |-
        Verknüpfungen setzen, Vorschläge übernehmen.

        Im Chat mit «Mono Admin»: `access_change`.
      operationId: putMandantenByIdAccess
      parameters:
        - name: id
          in: path
          required: true
          description: Der Mandant (seine ID auf diesem Node).
          schema:
            type: string
          example: muster-ag
        - name: If-Match
          in: header
          required: true
          description: >-
            Die Version aus dem `ETag` der letzten Antwort. Ohne sie antwortet
            der Node mit 428.
          schema:
            type: string
          example: '"3"'
      requestBody:
        required: false
        description: Ein JSON-Körper; seine Form beschreibt diese Referenz noch nicht.
        content:
          application/json: {}
      responses:
        '200':
          description: Erfolgreich.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessResponse'
        '400':
          $ref: '#/components/responses/Fehler400'
        '401':
          $ref: '#/components/responses/Fehler401'
        '403':
          $ref: '#/components/responses/Fehler403'
        '404':
          $ref: '#/components/responses/Fehler404'
        '428':
          $ref: '#/components/responses/Fehler428'
components:
  schemas:
    AccessResponse:
      type: object
      properties:
        access:
          type: object
          properties:
            version:
              type: integer
              minimum: 0
              maximum: 9007199254740991
            customised:
              type: boolean
            directory:
              type: object
              properties:
                provider:
                  anyOf:
                    - type: string
                      enum:
                        - entra
                        - google
                        - ad
                        - demo
                        - scim
                    - type: 'null'
                tenant:
                  anyOf:
                    - type: string
                      maxLength: 253
                    - type: 'null'
                state:
                  type: string
                  enum:
                    - 'off'
                    - connecting
                    - active
                    - error
                    - too-large
                stateText:
                  type: string
                  maxLength: 400
                stateSaid:
                  type: object
                  properties:
                    code:
                      type: string
                      maxLength: 60
                    vars:
                      type: object
                      propertyNames:
                        type: string
                      additionalProperties:
                        type:
                          - string
                          - number
                  required:
                    - code
                  additionalProperties: false
                connectedAt:
                  anyOf:
                    - type: string
                      minLength: 1
                    - type: 'null'
                connectedBy:
                  anyOf:
                    - type: object
                      properties:
                        id:
                          type: string
                        name:
                          type: string
                      required:
                        - id
                        - name
                      additionalProperties: false
                    - type: 'null'
                reads:
                  type: string
                  enum:
                    - delegated
                    - app
                reconsent:
                  type: boolean
                lastSync:
                  anyOf:
                    - type: object
                      properties:
                        at:
                          type: string
                          minLength: 1
                        ok:
                          type: boolean
                        kind:
                          type: string
                          enum:
                            - full
                            - delta
                        changes:
                          type: integer
                          minimum: 0
                          maximum: 9007199254740991
                        ms:
                          type: integer
                          minimum: 0
                          maximum: 9007199254740991
                        error:
                          anyOf:
                            - type: string
                              maxLength: 300
                            - type: 'null'
                      required:
                        - at
                        - ok
                        - kind
                        - changes
                        - ms
                        - error
                      additionalProperties: false
                    - type: 'null'
                nextSyncAt:
                  anyOf:
                    - type: string
                      minLength: 1
                    - type: 'null'
                intervalMin:
                  type: integer
                  exclusiveMinimum: 0
                  maximum: 9007199254740991
                people:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                enabledPeople:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                groups:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                held:
                  anyOf:
                    - type: object
                      properties:
                        id:
                          type: string
                          maxLength: 32
                        at:
                          type: string
                          minLength: 1
                        kind:
                          type: string
                          enum:
                            - full
                            - delta
                        known:
                          type: integer
                          minimum: 0
                          maximum: 9007199254740991
                        gone:
                          type: integer
                          minimum: 0
                          maximum: 9007199254740991
                        lost:
                          type: integer
                          minimum: 0
                          maximum: 9007199254740991
                        groups:
                          type: integer
                          minimum: 0
                          maximum: 9007199254740991
                        confirmed:
                          anyOf:
                            - type: object
                              properties:
                                by:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                    name:
                                      type: string
                                  required:
                                    - id
                                    - name
                                  additionalProperties: false
                                at:
                                  type: string
                                  minLength: 1
                              required:
                                - by
                                - at
                              additionalProperties: false
                            - type: 'null'
                      required:
                        - id
                        - at
                        - kind
                        - known
                        - gone
                        - confirmed
                      additionalProperties: false
                    - type: 'null'
                scim:
                  type: object
                  properties:
                    url:
                      type: string
                      maxLength: 400
                    public:
                      type: boolean
                    tokens:
                      maxItems: 10
                      type: array
                      items:
                        type: object
                        properties:
                          id:
                            type: string
                            maxLength: 40
                          at:
                            type: string
                            minLength: 1
                          expiresAt:
                            type: string
                            minLength: 1
                          until:
                            anyOf:
                              - type: string
                                minLength: 1
                              - type: 'null'
                        required:
                          - id
                          - at
                          - expiresAt
                          - until
                        additionalProperties: false
                    lastPushAt:
                      anyOf:
                        - type: string
                          minLength: 1
                        - type: 'null'
                  required:
                    - url
                    - public
                    - tokens
                    - lastPushAt
                  additionalProperties: false
                ad:
                  type: object
                  properties:
                    sites:
                      type: integer
                      minimum: 0
                      maximum: 9007199254740991
                    controllers:
                      maxItems: 16
                      type: array
                      items:
                        type: object
                        properties:
                          location:
                            type: string
                            maxLength: 200
                          ok:
                            type:
                              - boolean
                              - 'null'
                        required:
                          - location
                          - ok
                        additionalProperties: false
                  required:
                    - sites
                    - controllers
                  additionalProperties: false
                connect:
                  type: object
                  properties:
                    provider:
                      anyOf:
                        - type: string
                          enum:
                            - entra
                            - google
                            - ad
                            - demo
                            - scim
                        - type: 'null'
                    permissions:
                      type: array
                      items:
                        type: string
                    steps:
                      maxItems: 6
                      type: array
                      items:
                        type: string
                        maxLength: 300
                    stepsSaid:
                      maxItems: 6
                      type: array
                      items:
                        type: object
                        properties:
                          code:
                            type: string
                            maxLength: 60
                          vars:
                            type: object
                            propertyNames:
                              type: string
                            additionalProperties:
                              type:
                                - string
                                - number
                        required:
                          - code
                        additionalProperties: false
                    blocked:
                      anyOf:
                        - type: string
                          maxLength: 300
                        - type: 'null'
                    blockedSaid:
                      type: object
                      properties:
                        code:
                          type: string
                          maxLength: 60
                        vars:
                          type: object
                          propertyNames:
                            type: string
                          additionalProperties:
                            type:
                              - string
                              - number
                      required:
                        - code
                      additionalProperties: false
                    next:
                      type: string
                      enum:
                        - signin
                        - device
                    alternatives:
                      type: array
                      items:
                        type: string
                        enum:
                          - entra
                          - google
                          - ad
                          - demo
                          - scim
                  required:
                    - provider
                    - permissions
                    - steps
                    - blocked
                  additionalProperties: false
              required:
                - provider
                - tenant
                - state
                - stateText
                - connectedAt
                - connectedBy
                - lastSync
                - nextSyncAt
                - intervalMin
                - people
                - enabledPeople
                - groups
                - connect
              additionalProperties: false
            adminGroup:
              type: string
            groups:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                    minLength: 1
                    maxLength: 200
                  name:
                    type: string
                    maxLength: 256
                  description:
                    anyOf:
                      - type: string
                        maxLength: 1024
                      - type: 'null'
                  kind:
                    type: string
                    enum:
                      - security
                      - m365
                      - dynamic
                      - google
                      - approle
                      - mono
                      - distribution
                      - ldap
                  members:
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                  direct:
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                  parents:
                    maxItems: 500
                    type: array
                    items:
                      type: string
                  children:
                    maxItems: 1000
                    type: array
                    items:
                      type: string
                  source:
                    type: string
                    enum:
                      - directory
                      - token
                      - settings
                required:
                  - id
                  - name
                  - description
                  - kind
                  - members
                  - direct
                  - parents
                  - children
                  - source
                additionalProperties: false
            links:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                  group:
                    type: string
                  groupName:
                    type: string
                  role:
                    type: string
                    enum:
                      - admin
                      - partner
                      - approver
                      - ci-approver
                      - app-owner
                      - member
                  apps:
                    type: array
                    items:
                      type: string
                  resources:
                    type: array
                    items:
                      type: string
                  source:
                    type: string
                    enum:
                      - standard
                      - custom
                  orphaned:
                    type: boolean
                  members:
                    anyOf:
                      - type: integer
                        minimum: 0
                        maximum: 9007199254740991
                      - type: 'null'
                  note:
                    type:
                      - string
                      - 'null'
                  via:
                    anyOf:
                      - type: string
                        enum:
                          - console
                          - chat
                          - vorschlag
                      - type: 'null'
                  by:
                    anyOf:
                      - type: object
                        properties:
                          id:
                            type: string
                          name:
                            type: string
                        required:
                          - id
                          - name
                        additionalProperties: false
                      - type: 'null'
                  at:
                    anyOf:
                      - type: string
                        minLength: 1
                      - type: 'null'
                required:
                  - id
                  - group
                  - groupName
                  - role
                  - apps
                  - resources
                  - source
                  - orphaned
                  - members
                  - note
                  - via
                  - by
                  - at
                additionalProperties: false
            targets:
              type: array
              items:
                type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - app
                      - resource
                  id:
                    type: string
                  name:
                    type: string
                  where:
                    type:
                      - string
                      - 'null'
                  tags:
                    type: array
                    items:
                      type: string
                  restricted:
                    type: boolean
                  groups:
                    type: array
                    items:
                      type: string
                required:
                  - kind
                  - id
                  - name
                  - where
                  - tags
                  - restricted
                  - groups
                additionalProperties: false
            notices:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                  kind:
                    type: string
                    enum:
                      - group-new
                      - group-deleted
                      - admins-empty
                      - sync-failed
                      - too-large
                      - agent-paused
                      - people-removed
                      - round-held
                      - limit
                      - connection-ended
                      - partner-link
                      - zugang
                      - zustellung
                      - ordner
                      - connector-update
                      - system-ops
                  title:
                    type: string
                    maxLength: 200
                  text:
                    type: string
                    maxLength: 600
                  group:
                    type:
                      - string
                      - 'null'
                  app:
                    type:
                      - string
                      - 'null'
                  at:
                    type: string
                    minLength: 1
                  status:
                    type: string
                    enum:
                      - open
                      - done
                  doneBy:
                    anyOf:
                      - type: object
                        properties:
                          id:
                            type: string
                          name:
                            type: string
                        required:
                          - id
                          - name
                        additionalProperties: false
                      - type: 'null'
                  doneAt:
                    anyOf:
                      - type: string
                        minLength: 1
                      - type: 'null'
                  proposal:
                    anyOf:
                      - type: object
                        properties:
                          id:
                            type: string
                          group:
                            type: string
                          groupName:
                            type: string
                          members:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                          role:
                            type: string
                            enum:
                              - admin
                              - approver
                              - ci-approver
                              - app-owner
                              - member
                          apps:
                            type: array
                            items:
                              type: string
                          resources:
                            type: array
                            items:
                              type: string
                          rule:
                            type: string
                            enum:
                              - admin
                              - leitung
                              - marketing
                              - app
                              - bereich
                              - nutzung
                          reason:
                            type: string
                            maxLength: 400
                          confidence:
                            type: string
                            enum:
                              - hoch
                              - prüfen
                        required:
                          - id
                          - group
                          - groupName
                          - members
                          - role
                          - apps
                          - resources
                          - rule
                          - reason
                          - confidence
                        additionalProperties: false
                      - type: 'null'
                  said:
                    type: object
                    properties:
                      title:
                        type: object
                        properties:
                          code:
                            type: string
                            maxLength: 60
                          vars:
                            type: object
                            propertyNames:
                              type: string
                            additionalProperties:
                              type:
                                - string
                                - number
                        required:
                          - code
                        additionalProperties: false
                      text:
                        type: object
                        properties:
                          code:
                            type: string
                            maxLength: 60
                          vars:
                            type: object
                            propertyNames:
                              type: string
                            additionalProperties:
                              type:
                                - string
                                - number
                        required:
                          - code
                        additionalProperties: false
                    required:
                      - title
                      - text
                    additionalProperties: false
                required:
                  - id
                  - kind
                  - title
                  - text
                  - group
                  - app
                  - at
                  - status
                  - doneBy
                  - doneAt
                  - proposal
                additionalProperties: false
            updatedAt:
              anyOf:
                - type: string
                  minLength: 1
                - type: 'null'
            updatedBy:
              anyOf:
                - type: object
                  properties:
                    id:
                      type: string
                    name:
                      type: string
                  required:
                    - id
                    - name
                  additionalProperties: false
                - type: 'null'
            monoGroups:
              default: []
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                    minLength: 1
                    maxLength: 200
                  name:
                    type: string
                    maxLength: 80
                  members:
                    maxItems: 500
                    type: array
                    items:
                      type: string
                  createdBy:
                    type: object
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                    required:
                      - id
                      - name
                    additionalProperties: false
                  createdAt:
                    type: string
                    minLength: 1
                  updatedAt:
                    anyOf:
                      - type: string
                        minLength: 1
                      - type: 'null'
                required:
                  - id
                  - name
                  - members
                  - createdBy
                  - createdAt
                  - updatedAt
                additionalProperties: false
            monoGroupsOffered:
              default: false
              type: boolean
          required:
            - version
            - customised
            - directory
            - adminGroup
            - groups
            - links
            - targets
            - notices
            - updatedAt
            - updatedBy
            - monoGroups
            - monoGroupsOffered
          additionalProperties: false
      required:
        - access
      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:
    Fehler400:
      description: Die Eingabe passt nicht. `message` sagt, was fehlt.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Fehler'
    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'
    Fehler428:
      description: >-
        Die Version fehlt (If-Match). Laden Sie neu und senden Sie das `ETag`
        mit.
      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.