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

# Einen Datenweg, eine Regel, einen Begriff oder die Eigene Cloud ändern (vorher → nachher)

> Einen Datenweg, eine Regel, einen Begriff oder die Eigene Cloud ändern (vorher → nachher).

Im Chat mit «Mono Admin»: .



## OpenAPI

````yaml /api-reference/openapi.json post /mandanten/{id}/datenwege
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}/datenwege:
    post:
      tags:
        - Gateway
      summary: >-
        Einen Datenweg, eine Regel, einen Begriff oder die Eigene Cloud ändern
        (vorher → nachher)
      description: >-
        Einen Datenweg, eine Regel, einen Begriff oder die Eigene Cloud ändern
        (vorher → nachher).


        Im Chat mit «Mono Admin»: .
      operationId: postMandantenByIdDatenwege
      parameters:
        - name: id
          in: path
          required: true
          description: Der Mandant (seine ID auf diesem Node).
          schema:
            type: string
          example: muster-ag
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DwChange'
      responses:
        '200':
          description: Erfolgreich.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DatenwegeChangeResponse'
        '400':
          $ref: '#/components/responses/Fehler400'
        '401':
          $ref: '#/components/responses/Fehler401'
        '403':
          $ref: '#/components/responses/Fehler403'
        '404':
          $ref: '#/components/responses/Fehler404'
components:
  schemas:
    DwChange:
      oneOf:
        - type: object
          properties:
            op:
              type: string
              const: route_set
            cls:
              type: string
              enum:
                - öffentlich
                - intern
                - vertraulich
            where:
              type: array
              items:
                type: string
                enum:
                  - lokal
                  - eigene-cloud
                  - ch-eu
                  - weltweit
            webSearch:
              type: boolean
            webFetch:
              type: boolean
            domains:
              maxItems: 50
              type: array
              items:
                type: string
                pattern: >-
                  ^(?=.{1,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,63}$
            systems:
              maxItems: 60
              type: array
              items:
                type: string
                maxLength: 80
          required:
            - op
            - cls
        - type: object
          properties:
            op:
              type: string
              const: route_reset
            cls:
              type: string
              enum:
                - öffentlich
                - intern
                - vertraulich
          required:
            - op
            - cls
        - type: object
          properties:
            op:
              type: string
              const: rule_set
            rule:
              type: string
              enum:
                - keys
                - ahv
                - iban
                - terms
                - vermerk
                - connector
                - purview-v
                - purview-i
                - repo
                - model
            'on':
              type: boolean
          required:
            - op
            - rule
            - 'on'
        - type: object
          properties:
            op:
              type: string
              const: rule_reset
            rule:
              type: string
              enum:
                - keys
                - ahv
                - iban
                - terms
                - vermerk
                - connector
                - purview-v
                - purview-i
                - repo
                - model
          required:
            - op
            - rule
        - type: object
          properties:
            op:
              type: string
              const: term_add
            term:
              type: string
              maxLength: 80
          required:
            - op
            - term
        - type: object
          properties:
            op:
              type: string
              const: term_remove
            term:
              type: string
              maxLength: 80
          required:
            - op
            - term
        - type: object
          properties:
            op:
              type: string
              const: doc_lower
            doc:
              type: string
              minLength: 1
              maxLength: 600
          required:
            - op
            - doc
        - type: object
          properties:
            op:
              type: string
              const: doc_restore
            doc:
              type: string
              minLength: 1
              maxLength: 600
          required:
            - op
            - doc
        - type: object
          properties:
            op:
              type: string
              const: eigene_cloud_confirm
            provider:
              type: string
              maxLength: 80
            alsoRoute:
              type: boolean
          required:
            - op
            - provider
        - type: object
          properties:
            op:
              type: string
              const: eigene_cloud_revoke
            provider:
              type: string
              maxLength: 80
          required:
            - op
            - provider
    DatenwegeChangeResponse:
      type: object
      properties:
        datenwege:
          type: object
          properties:
            mandant:
              type: object
              properties:
                id:
                  type: string
                name:
                  type: string
              required:
                - id
                - name
              additionalProperties: false
            canEdit:
              type: boolean
            lock:
              type:
                - string
                - 'null'
            routes:
              type: array
              items:
                type: object
                properties:
                  cls:
                    type: string
                    enum:
                      - öffentlich
                      - intern
                      - vertraulich
                  where:
                    type: array
                    items:
                      type: string
                      enum:
                        - lokal
                        - eigene-cloud
                        - ch-eu
                        - weltweit
                  webSearch:
                    type: boolean
                  webFetch:
                    type: boolean
                  domains:
                    type: array
                    items:
                      type: string
                  systems:
                    type: array
                    items:
                      type: string
                  custom:
                    anyOf:
                      - type: object
                        properties:
                          by:
                            type: string
                          at:
                            type: string
                            minLength: 1
                        required:
                          - by
                          - at
                        additionalProperties: false
                      - type: 'null'
                required:
                  - cls
                  - where
                  - webSearch
                  - webFetch
                  - domains
                  - systems
                  - custom
                additionalProperties: false
            systems:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                  kind:
                    type: string
                  cls:
                    type: string
                    enum:
                      - öffentlich
                      - intern
                      - vertraulich
                  private:
                    type: boolean
                  connector:
                    type:
                      - string
                      - 'null'
                  darfVertraulich:
                    type: boolean
                  live:
                    type: boolean
                  confidentialWhy:
                    type:
                      - string
                      - 'null'
                required:
                  - id
                  - name
                  - kind
                  - cls
                  - private
                  - connector
                  - darfVertraulich
                  - live
                  - confidentialWhy
                additionalProperties: false
            senders:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                  kind:
                    type: string
                    maxLength: 20
                  host:
                    type: string
                    maxLength: 254
                  region:
                    anyOf:
                      - type: string
                        enum:
                          - ch
                          - eu
                          - other
                      - type: 'null'
                  device:
                    type:
                      - string
                      - 'null'
                  cls:
                    type: string
                    enum:
                      - öffentlich
                      - intern
                      - vertraulich
                  live:
                    type: boolean
                required:
                  - id
                  - name
                  - kind
                  - host
                  - region
                  - cls
                  - live
                additionalProperties: false
            rules:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                    enum:
                      - keys
                      - ahv
                      - iban
                      - terms
                      - vermerk
                      - connector
                      - purview-v
                      - purview-i
                      - repo
                      - model
                  name:
                    type: string
                  source:
                    type: string
                  kind:
                    type: string
                    enum:
                      - content
                      - label
                      - classifier
                  content:
                    type: string
                    enum:
                      - keys
                      - ahv
                      - iban
                      - terms
                      - marker
                  raisesTo:
                    type: string
                    enum:
                      - öffentlich
                      - intern
                      - vertraulich
                  action:
                    type: string
                    enum:
                      - anheben
                      - entfernen
                  'on':
                    type: boolean
                  standardOn:
                    type: boolean
                  fixed:
                    type: boolean
                  soon:
                    type: boolean
                  today:
                    type: string
                  matches7d:
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                  custom:
                    anyOf:
                      - type: object
                        properties:
                          by:
                            type: string
                          at:
                            type: string
                            minLength: 1
                        required:
                          - by
                          - at
                        additionalProperties: false
                      - type: 'null'
                required:
                  - id
                  - name
                  - source
                  - kind
                  - raisesTo
                  - action
                  - 'on'
                  - standardOn
                  - matches7d
                  - custom
                additionalProperties: false
            terms:
              type: array
              items:
                type: string
            termsCustom:
              anyOf:
                - type: object
                  properties:
                    by:
                      type: string
                    at:
                      type: string
                      minLength: 1
                  required:
                    - by
                    - at
                  additionalProperties: false
                - type: 'null'
            providers:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                  locality:
                    type: string
                    enum:
                      - lokal
                      - eigene-cloud
                      - ch-eu
                      - weltweit
                  region:
                    type: string
                  account:
                    type:
                      - string
                      - 'null'
                  confidential:
                    anyOf:
                      - type: object
                        properties:
                          by:
                            type: string
                          at:
                            type: string
                            minLength: 1
                        required:
                          - by
                          - at
                        additionalProperties: false
                      - type: 'null'
                  refused:
                    type: array
                    items:
                      type: object
                      properties:
                        model:
                          type: string
                        reason:
                          type: string
                          enum:
                            - global-profile
                            - foreign-profile
                            - global-region
                            - global-deployment
                      required:
                        - model
                        - reason
                      additionalProperties: false
                required:
                  - id
                  - name
                  - locality
                  - region
                  - account
                  - confidential
                  - refused
                additionalProperties: false
            lanes:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                  client:
                    type: string
                  catalogId:
                    type: string
                  own:
                    type: string
                  enforces:
                    type: string
                  webSearch:
                    type: string
                  state:
                    type: string
                    enum:
                      - verfuegbar
                      - teilweise
                      - vorschau
                      - keine
                      - bald
                  vendor:
                    type: string
                    enum:
                      - verfuegbar
                      - teilweise
                      - vorschau
                      - keine
                      - bald
                  why:
                    type:
                      - string
                      - 'null'
                  whyCode:
                    anyOf:
                      - type: string
                        maxLength: 60
                      - type: 'null'
                  next:
                    type: string
                    enum:
                      - gateway
                      - files
                      - codex
                      - steps
                  steps:
                    type: array
                    items:
                      type: string
                  source:
                    type: string
                  measured:
                    anyOf:
                      - type: object
                        properties:
                          approved:
                            type: boolean
                          consents:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                          dataClasses:
                            type: array
                            items:
                              type: string
                              enum:
                                - öffentlich
                                - intern
                                - vertraulich
                        required:
                          - approved
                          - consents
                          - dataClasses
                        additionalProperties: false
                      - type: 'null'
                  tools:
                    anyOf:
                      - type: string
                        const: all
                      - type: object
                        properties:
                          apps:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                          systems:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                        required:
                          - apps
                          - systems
                        additionalProperties: false
                  gateway:
                    type: object
                    properties:
                      state:
                        type: string
                        enum:
                          - none
                          - running
                          - starting
                          - failed
                          - unknown
                      device:
                        type:
                          - string
                          - 'null'
                      profiles:
                        type: array
                        items:
                          type: string
                    required:
                      - state
                      - device
                      - profiles
                    additionalProperties: false
                  platform:
                    type: object
                    properties:
                      hosting:
                        type: string
                        enum:
                          - selbst
                          - anthropic
                      where:
                        type: string
                      zone:
                        type: string
                        enum:
                          - eu
                          - weltweit
                    required:
                      - hosting
                      - where
                      - zone
                    additionalProperties: false
                required:
                  - id
                  - client
                  - own
                  - enforces
                  - webSearch
                  - state
                  - vendor
                  - why
                  - next
                  - steps
                  - source
                  - measured
                  - tools
                additionalProperties: false
            lanesCheckedAt:
              type: string
              minLength: 1
            measured:
              type: object
              properties:
                blocked7d:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                detected7d:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                removed7d:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                byClass:
                  type: object
                  properties:
                    öffentlich:
                      type: integer
                      minimum: 0
                      maximum: 9007199254740991
                    intern:
                      type: integer
                      minimum: 0
                      maximum: 9007199254740991
                    vertraulich:
                      type: integer
                      minimum: 0
                      maximum: 9007199254740991
                  required:
                    - öffentlich
                    - intern
                    - vertraulich
                  additionalProperties: false
                days:
                  type: array
                  items:
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
              required:
                - blocked7d
                - detected7d
                - removed7d
                - byClass
                - days
              additionalProperties: false
            measuredAt:
              type: string
              minLength: 1
            classifier:
              type: object
              properties:
                'on':
                  type: boolean
                ready:
                  type: boolean
                why:
                  type:
                    - string
                    - 'null'
                provider:
                  anyOf:
                    - type: object
                      properties:
                        id:
                          type: string
                        name:
                          type: string
                      required:
                        - id
                        - name
                      additionalProperties: false
                    - type: 'null'
                test:
                  anyOf:
                    - type: object
                      properties:
                        ok:
                          type: boolean
                        at:
                          type: string
                          minLength: 1
                        ms:
                          type: integer
                          minimum: 0
                          maximum: 9007199254740991
                        text:
                          type: string
                      required:
                        - ok
                        - at
                        - ms
                        - text
                      additionalProperties: false
                    - type: 'null'
                judged7d:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                raised7d:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                unchecked7d:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
              required:
                - 'on'
                - ready
                - why
                - provider
                - test
                - judged7d
                - raised7d
                - unchecked7d
              additionalProperties: false
            confidentialSwiss:
              type: boolean
            erkannt:
              type: object
              properties:
                count:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                docs:
                  type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: string
                      title:
                        type: string
                      source:
                        type: string
                      cls:
                        type: string
                        enum:
                          - öffentlich
                          - intern
                          - vertraulich
                      base:
                        type: string
                        enum:
                          - öffentlich
                          - intern
                          - vertraulich
                      rules:
                        type: array
                        items:
                          type: string
                    required:
                      - id
                      - title
                      - source
                      - cls
                      - base
                      - rules
                    additionalProperties: false
              required:
                - count
                - docs
              additionalProperties: false
          required:
            - mandant
            - canEdit
            - lock
            - routes
            - systems
            - rules
            - terms
            - termsCustom
            - providers
            - lanes
            - lanesCheckedAt
            - measured
            - measuredAt
            - classifier
            - confidentialSwiss
          additionalProperties: false
        text:
          type: string
        rows:
          type: array
          items:
            type: object
            properties:
              label:
                type: string
              before:
                type: string
              after:
                type: string
            required:
              - label
              - before
              - after
            additionalProperties: false
      required:
        - datenwege
        - text
        - rows
      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'
  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.