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

# Name, Datenklasse, Anmeldung, Stufen, gewählte Operationen, «Als nur lesend einstufen» (SY-14) und die Operationen eines REST-Systems (M2)

> Name, Datenklasse, Anmeldung, Stufen, gewählte Operationen, «Als nur lesend einstufen» (SY-14) und die Operationen eines REST-Systems (M2).

Im Chat mit «Mono Admin»: .



## OpenAPI

````yaml /api-reference/openapi.json patch /mandanten/{id}/systems/external/{sys}
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}/systems/external/{sys}:
    patch:
      tags:
        - Konnektoren
      summary: >-
        Name, Datenklasse, Anmeldung, Stufen, gewählte Operationen, «Als nur
        lesend einstufen» (SY-14) und die Operationen eines REST-Systems (M2)
      description: >-
        Name, Datenklasse, Anmeldung, Stufen, gewählte Operationen, «Als nur
        lesend einstufen» (SY-14) und die Operationen eines REST-Systems (M2).


        Im Chat mit «Mono Admin»: .
      operationId: patchMandantenByIdSystemsExternalBySys
      parameters:
        - name: id
          in: path
          required: true
          description: Der Mandant (seine ID auf diesem Node).
          schema:
            type: string
          example: muster-ag
        - name: sys
          in: path
          required: true
          description: Das System.
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExtChangeBody'
      responses:
        '200':
          description: Erfolgreich.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExtSystemResponse'
        '400':
          $ref: '#/components/responses/Fehler400'
        '401':
          $ref: '#/components/responses/Fehler401'
        '403':
          $ref: '#/components/responses/Fehler403'
        '404':
          $ref: '#/components/responses/Fehler404'
components:
  schemas:
    ExtChangeBody:
      type: object
      properties:
        name:
          type: string
          minLength: 2
          maxLength: 60
        kind:
          type: string
          enum:
            - mcp
            - openapi
            - rest
            - graphql
            - sparql
            - feed
            - odata
            - soap
            - caldav
            - webdav
            - s3
            - jsonrpc
            - ftp
            - imap
            - database
            - browser
            - shell
            - opcua
            - mqtt
            - printer
        dataClass:
          type: string
          enum:
            - öffentlich
            - intern
            - vertraulich
        levels:
          type: object
          propertyNames:
            type: string
          additionalProperties:
            anyOf:
              - type: string
                enum:
                  - 'off'
                  - 'on'
                  - approval
              - type: string
                const: standard
        chosen:
          maxItems: 500
          type: array
          items:
            type: string
        effects:
          type: object
          propertyNames:
            type: string
          additionalProperties:
            type: string
            enum:
              - read
              - write
              - delete
        paging:
          type: object
          propertyNames:
            type: string
          additionalProperties:
            anyOf:
              - type: object
                properties:
                  next:
                    type: string
                    pattern: ^[A-Za-z0-9_@$.-]{1,120}$
                  param:
                    type: string
                    pattern: ^[A-Za-z0-9_.[\]-]{1,80}$
                required:
                  - next
              - type: 'null'
        shown:
          type: object
          propertyNames:
            type: string
          additionalProperties:
            anyOf:
              - type: object
                properties:
                  fields:
                    minItems: 1
                    maxItems: 30
                    type: array
                    items:
                      type: string
                      minLength: 1
                      maxLength: 120
                  first:
                    type: integer
                    minimum: 1
                    maximum: 5
                  labels:
                    type: object
                    propertyNames:
                      type: string
                      minLength: 1
                      maxLength: 120
                    additionalProperties:
                      type: string
                      minLength: 1
                      maxLength: 60
                  roles:
                    type: object
                    propertyNames:
                      type: string
                      minLength: 1
                      maxLength: 120
                    additionalProperties:
                      type: string
                      enum:
                        - name
                        - state
                        - open
                        - amount
                        - date
                        - party
                required:
                  - fields
              - type: 'null'
        does:
          type: object
          propertyNames:
            type: string
          additionalProperties:
            anyOf:
              - type: string
                enum:
                  - mail.read
                  - mail.drafts
                  - mail.send
                  - calendar.read
                  - calendar.freebusy
                  - calendar.shared
                  - calendar.private
                  - calendar.invite
                  - chats.read
                  - chats.send
                  - channels.read
                  - channels.send
                  - contacts.read
                  - files.read
                  - sites.read
                  - tasks.read
                  - tasks.write
                  - notes.read
                  - notes.write
                  - meetings.record
                  - files.create
                  - sites.create
                  - meetings.notice
                  - meetings.transcript
                  - people.search
              - type: 'null'
        auth:
          type: object
          properties:
            kind:
              type: string
              enum:
                - none
                - key
                - bearer
                - basic
                - oauth-client
                - sigv4
                - oauth-person
            header:
              type: string
              maxLength: 80
            query:
              type: string
              maxLength: 80
            username:
              type: string
              maxLength: 200
            tokenUrl:
              type: string
              maxLength: 500
            scopes:
              maxItems: 20
              type: array
              items:
                type: string
                maxLength: 200
            region:
              type: string
              pattern: ^[a-z0-9-]{2,40}$
            env:
              type: string
              pattern: ^MONO_KEY_[A-Z0-9_]{1,64}$
            steps:
              maxItems: 8
              type: array
              items:
                oneOf:
                  - type: object
                    properties:
                      do:
                        type: string
                        const: header
                      name:
                        type: string
                        pattern: ^[A-Za-z0-9-]{1,80}$
                      value:
                        type: string
                        maxLength: 500
                      secret:
                        type: string
                        pattern: ^[a-z][a-z0-9-]{0,23}$
                      prefix:
                        type: string
                        maxLength: 40
                    required:
                      - do
                      - name
                  - type: object
                    properties:
                      do:
                        type: string
                        const: query
                      name:
                        type: string
                        pattern: ^[A-Za-z0-9_.-]{1,80}$
                      secret:
                        type: string
                        pattern: ^[a-z][a-z0-9-]{0,23}$
                    required:
                      - do
                      - name
                      - secret
                  - type: object
                    properties:
                      do:
                        type: string
                        const: sign
                      secret:
                        type: string
                        pattern: ^[a-z][a-z0-9-]{0,23}$
                      alg:
                        default: sha256
                        type: string
                        enum:
                          - sha256
                          - sha512
                          - sha1
                      over:
                        type: string
                        minLength: 1
                        maxLength: 500
                      header:
                        type: string
                        pattern: ^[A-Za-z0-9-]{1,80}$
                      encoding:
                        default: hex
                        type: string
                        enum:
                          - hex
                          - base64
                      prefix:
                        type: string
                        maxLength: 80
                      timestamp:
                        type: object
                        properties:
                          header:
                            type: string
                            pattern: ^[A-Za-z0-9-]{1,80}$
                          format:
                            default: unix
                            type: string
                            enum:
                              - unix
                              - unix-ms
                              - iso
                      nonce:
                        type: object
                        properties:
                          header:
                            type: string
                            pattern: ^[A-Za-z0-9-]{1,80}$
                        required:
                          - header
                    required:
                      - do
                      - secret
                      - over
                      - header
                  - type: object
                    properties:
                      do:
                        type: string
                        const: client-cert
                      cert:
                        default: cert
                        type: string
                        pattern: ^[a-z][a-z0-9-]{0,23}$
                      key:
                        default: key
                        type: string
                        pattern: ^[a-z][a-z0-9-]{0,23}$
                    required:
                      - do
                  - type: object
                    properties:
                      do:
                        type: string
                        const: jwt
                      secret:
                        default: signing
                        type: string
                        pattern: ^[a-z][a-z0-9-]{0,23}$
                      alg:
                        default: RS256
                        type: string
                        enum:
                          - RS256
                          - ES256
                          - PS256
                          - HS256
                      issuer:
                        type: string
                        minLength: 1
                        maxLength: 300
                      subject:
                        type: string
                        maxLength: 300
                      audience:
                        type: string
                        maxLength: 500
                      keyId:
                        type: string
                        maxLength: 200
                      scopes:
                        maxItems: 20
                        type: array
                        items:
                          type: string
                          maxLength: 200
                      url:
                        type: string
                        maxLength: 500
                      header:
                        default: Authorization
                        type: string
                        pattern: ^[A-Za-z0-9-]{1,80}$
                      prefix:
                        default: 'Bearer '
                        type: string
                        maxLength: 40
                      lifetimeS:
                        default: 300
                        type: integer
                        minimum: 30
                        maximum: 3600
                    required:
                      - do
                      - issuer
            keyOf:
              description: >-
                Hinter einem Mono Connector: die Kennung des Systems, dessen
                Schlüssel dieses System verwendet
              type: string
              maxLength: 40
            line:
              description: >-
                Hinter einem Mono Connector: die Kennung des Schlüssels auf dem
                Gerät, den dieses System nimmt
              type: string
              pattern: ^[A-Za-z0-9_-]{8,40}$
            fresh:
              description: 'Hinter einem Mono Connector: einen neuen Schlüssel eintragen'
              type: boolean
              const: true
          required:
            - kind
        app:
          type: boolean
        long:
          type: object
          propertyNames:
            type: string
          additionalProperties:
            type: boolean
        queries:
          maxItems: 40
          type: array
          items:
            type: object
            properties:
              key:
                type: string
                pattern: ^[a-z][a-z0-9_]{1,40}$
              title:
                type: string
                minLength: 2
                maxLength: 80
              description:
                default: ''
                type: string
                maxLength: 500
              statement:
                type: string
                minLength: 8
                maxLength: 8000
              params:
                default: []
                maxItems: 20
                type: array
                items:
                  type: object
                  properties:
                    name:
                      type: string
                      pattern: ^[A-Za-z_][A-Za-z0-9_]{0,39}$
                    type:
                      type: string
                      enum:
                        - text
                        - integer
                        - number
                        - boolean
                        - date
                        - datetime
                    description:
                      type: string
                      maxLength: 200
                    example:
                      anyOf:
                        - type: string
                          maxLength: 200
                        - type: number
                        - type: boolean
                  required:
                    - name
                    - type
              before:
                type: string
                minLength: 8
                maxLength: 8000
              maxRows:
                type: integer
                minimum: 1
                maximum: 1000
              maxAffected:
                type: integer
                minimum: 1
                maximum: 1000
            required:
              - key
              - title
              - statement
        removeQueries:
          maxItems: 40
          type: array
          items:
            type: string
        pages:
          maxItems: 40
          type: array
          items:
            type: object
            properties:
              key:
                type: string
                pattern: ^[a-z][a-z0-9_]{1,40}$
              title:
                type: string
                minLength: 2
                maxLength: 80
              description:
                default: ''
                type: string
                maxLength: 500
              kind:
                type: string
                enum:
                  - read
                  - form
              url:
                type: string
                minLength: 1
                maxLength: 500
              params:
                default: []
                maxItems: 10
                type: array
                items:
                  type: object
                  properties:
                    name:
                      type: string
                      pattern: ^[a-z][a-z0-9_]{0,39}$
                    type:
                      type: string
                      enum:
                        - text
                        - integer
                    description:
                      type: string
                      maxLength: 200
                    example:
                      anyOf:
                        - type: string
                          maxLength: 200
                        - type: number
                  required:
                    - name
                    - type
              extract:
                maxItems: 20
                type: array
                items:
                  type: object
                  properties:
                    name:
                      type: string
                      pattern: ^[a-z][a-z0-9_]{0,39}$
                    selector:
                      type: string
                      minLength: 1
                      maxLength: 200
                  required:
                    - name
                    - selector
              fields:
                maxItems: 30
                type: array
                items:
                  type: object
                  properties:
                    selector:
                      type: string
                      minLength: 1
                      maxLength: 200
                    param:
                      type: string
                      pattern: ^[a-z][a-z0-9_]{0,39}$
                    value:
                      type: string
                      maxLength: 2000
                  required:
                    - selector
              submit:
                type: string
                minLength: 1
                maxLength: 200
              wait:
                type: string
                minLength: 1
                maxLength: 200
              effect:
                type: string
                enum:
                  - write
                  - delete
            required:
              - key
              - title
              - kind
              - url
        removePages:
          maxItems: 40
          type: array
          items:
            type: string
        operations:
          maxItems: 40
          type: array
          items:
            type: object
            properties:
              key:
                type: string
                pattern: ^[a-z][a-z0-9_]{1,40}$
              title:
                type: string
                minLength: 2
                maxLength: 80
              description:
                default: ''
                type: string
                maxLength: 500
              method:
                type: string
                enum:
                  - GET
                  - POST
                  - PUT
                  - PATCH
                  - DELETE
              path:
                type: string
                maxLength: 300
              input:
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
              headers:
                maxItems: 10
                type: array
                items:
                  type: string
                  pattern: ^[A-Za-z][A-Za-z0-9-]{0,63}$
              effect:
                type: string
                enum:
                  - read
                  - write
                  - delete
              fixed:
                anyOf:
                  - type: object
                    properties:
                      query:
                        type: object
                        propertyNames:
                          type: string
                          pattern: ^[A-Za-z0-9_.$[\]-]{1,60}$
                        additionalProperties:
                          anyOf:
                            - type: string
                              maxLength: 500
                            - type: number
                            - type: boolean
                      body:
                        type: object
                        propertyNames:
                          type: string
                          maxLength: 80
                        additionalProperties:
                          $ref: '#/components/schemas/ExtChangeBody___schema0'
                    additionalProperties: false
                  - type: object
                    propertyNames:
                      type: string
                      maxLength: 80
                    additionalProperties:
                      $ref: '#/components/schemas/ExtChangeBody___schema0'
              fields:
                type: object
                propertyNames:
                  type: string
                  maxLength: 120
                additionalProperties:
                  type: string
                  minLength: 1
                  maxLength: 80
            required:
              - key
              - title
              - method
              - path
        removeOperations:
          maxItems: 40
          type: array
          items:
            type: string
    ExtSystemResponse:
      type: object
      properties:
        system:
          type: object
          properties:
            id:
              type: string
            name:
              type: string
            kind:
              type: string
              enum:
                - mcp
                - openapi
                - rest
                - graphql
                - sparql
                - feed
                - odata
                - soap
                - caldav
                - webdav
                - s3
                - jsonrpc
                - ftp
                - imap
                - database
                - browser
                - shell
                - opcua
                - mqtt
                - printer
            kindOpen:
              type: boolean
            address:
              type: string
            status:
              type: string
              enum:
                - draft
                - tested
                - live
                - paused
                - failing
            statusText:
              type: string
            dataClass:
              type: string
              enum:
                - öffentlich
                - intern
                - vertraulich
            auth:
              type: object
              properties:
                kind:
                  type: string
                  enum:
                    - none
                    - key
                    - bearer
                    - basic
                    - oauth-client
                    - sigv4
                    - oauth-person
                header:
                  anyOf:
                    - type: string
                      maxLength: 80
                    - type: 'null'
                query:
                  anyOf:
                    - type: string
                      maxLength: 80
                    - type: 'null'
                username:
                  anyOf:
                    - type: string
                      maxLength: 200
                    - type: 'null'
                tokenUrl:
                  anyOf:
                    - type: string
                      maxLength: 500
                    - type: 'null'
                scopes:
                  maxItems: 20
                  type: array
                  items:
                    type: string
                    maxLength: 200
                region:
                  anyOf:
                    - type: string
                      maxLength: 40
                    - type: 'null'
                env:
                  anyOf:
                    - type: string
                      maxLength: 80
                    - type: 'null'
                set:
                  type: boolean
                person:
                  anyOf:
                    - type: object
                      properties:
                        people:
                          type: number
                        me:
                          type: boolean
                        account:
                          type: string
                          maxLength: 120
                      required:
                        - people
                        - me
                      additionalProperties: false
                    - type: 'null'
                steps:
                  type: array
                  items:
                    oneOf:
                      - type: object
                        properties:
                          do:
                            type: string
                            const: header
                          name:
                            type: string
                            pattern: ^[A-Za-z0-9-]{1,80}$
                          value:
                            type: string
                            maxLength: 500
                          secret:
                            type: string
                            pattern: ^[a-z][a-z0-9-]{0,23}$
                          prefix:
                            type: string
                            maxLength: 40
                        required:
                          - do
                          - name
                        additionalProperties: false
                      - type: object
                        properties:
                          do:
                            type: string
                            const: query
                          name:
                            type: string
                            pattern: ^[A-Za-z0-9_.-]{1,80}$
                          secret:
                            type: string
                            pattern: ^[a-z][a-z0-9-]{0,23}$
                        required:
                          - do
                          - name
                          - secret
                        additionalProperties: false
                      - type: object
                        properties:
                          do:
                            type: string
                            const: sign
                          secret:
                            type: string
                            pattern: ^[a-z][a-z0-9-]{0,23}$
                          alg:
                            default: sha256
                            type: string
                            enum:
                              - sha256
                              - sha512
                              - sha1
                          over:
                            type: string
                            minLength: 1
                            maxLength: 500
                          header:
                            type: string
                            pattern: ^[A-Za-z0-9-]{1,80}$
                          encoding:
                            default: hex
                            type: string
                            enum:
                              - hex
                              - base64
                          prefix:
                            type: string
                            maxLength: 80
                          timestamp:
                            type: object
                            properties:
                              header:
                                type: string
                                pattern: ^[A-Za-z0-9-]{1,80}$
                              format:
                                default: unix
                                type: string
                                enum:
                                  - unix
                                  - unix-ms
                                  - iso
                            required:
                              - format
                            additionalProperties: false
                          nonce:
                            type: object
                            properties:
                              header:
                                type: string
                                pattern: ^[A-Za-z0-9-]{1,80}$
                            required:
                              - header
                            additionalProperties: false
                        required:
                          - do
                          - secret
                          - alg
                          - over
                          - header
                          - encoding
                        additionalProperties: false
                      - type: object
                        properties:
                          do:
                            type: string
                            const: client-cert
                          cert:
                            default: cert
                            type: string
                            pattern: ^[a-z][a-z0-9-]{0,23}$
                          key:
                            default: key
                            type: string
                            pattern: ^[a-z][a-z0-9-]{0,23}$
                        required:
                          - do
                          - cert
                          - key
                        additionalProperties: false
                      - type: object
                        properties:
                          do:
                            type: string
                            const: jwt
                          secret:
                            default: signing
                            type: string
                            pattern: ^[a-z][a-z0-9-]{0,23}$
                          alg:
                            default: RS256
                            type: string
                            enum:
                              - RS256
                              - ES256
                              - PS256
                              - HS256
                          issuer:
                            type: string
                            minLength: 1
                            maxLength: 300
                          subject:
                            type: string
                            maxLength: 300
                          audience:
                            type: string
                            maxLength: 500
                          keyId:
                            type: string
                            maxLength: 200
                          scopes:
                            maxItems: 20
                            type: array
                            items:
                              type: string
                              maxLength: 200
                          url:
                            type: string
                            maxLength: 500
                          header:
                            default: Authorization
                            type: string
                            pattern: ^[A-Za-z0-9-]{1,80}$
                          prefix:
                            default: 'Bearer '
                            type: string
                            maxLength: 40
                          lifetimeS:
                            default: 300
                            type: integer
                            minimum: 30
                            maximum: 3600
                        required:
                          - do
                          - secret
                          - alg
                          - issuer
                          - header
                          - prefix
                          - lifetimeS
                        additionalProperties: false
                slots:
                  type: array
                  items:
                    type: object
                    properties:
                      slot:
                        type: string
                        pattern: ^[a-z][a-z0-9-]{0,23}$
                      set:
                        type: boolean
                    required:
                      - slot
                      - set
                    additionalProperties: false
              required:
                - kind
                - header
                - query
                - username
                - tokenUrl
                - scopes
                - set
              additionalProperties: false
            operations:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                  key:
                    type: string
                  title:
                    type: string
                  description:
                    type: string
                  effect:
                    type: string
                    enum:
                      - read
                      - write
                      - delete
                  level:
                    type: string
                    enum:
                      - 'off'
                      - 'on'
                      - approval
                  chosen:
                    type: boolean
                  source:
                    type: string
                  input:
                    type: object
                    propertyNames:
                      type: string
                    additionalProperties: {}
                  scope:
                    type: string
                  unscoped:
                    type: boolean
                  code:
                    type: boolean
                  unsaid:
                    type: boolean
                  neverRead:
                    type: boolean
                  readName:
                    type: boolean
                  long:
                    type: string
                    enum:
                      - admin
                      - system
                      - measured
                  paging:
                    type: object
                    properties:
                      next:
                        type: string
                        pattern: ^[A-Za-z0-9_@$.-]{1,120}$
                      param:
                        type: string
                        pattern: ^[A-Za-z0-9_.[\]-]{1,80}$
                    required:
                      - next
                    additionalProperties: false
                  shown:
                    type: object
                    properties:
                      fields:
                        maxItems: 30
                        type: array
                        items:
                          type: object
                          properties:
                            path:
                              type: string
                              pattern: ^[A-Za-z0-9_@$.-]{1,120}$
                            label:
                              type: string
                              minLength: 1
                              maxLength: 60
                            role:
                              type: string
                              enum:
                                - name
                                - state
                                - open
                                - amount
                                - date
                                - party
                            noSum:
                              type: boolean
                              const: true
                            minor:
                              type: integer
                              minimum: 1
                              maximum: 4
                          required:
                            - path
                          additionalProperties: false
                      first:
                        type: integer
                        minimum: 1
                        maximum: 5
                      by:
                        type: string
                        enum:
                          - system
                          - admin
                          - mono
                      more:
                        maxItems: 40
                        type: array
                        items:
                          type: object
                          properties:
                            path:
                              type: string
                              pattern: ^[A-Za-z0-9_@$.-]{1,120}$
                            label:
                              type: string
                              maxLength: 80
                          required:
                            - path
                            - label
                          additionalProperties: false
                    required:
                      - fields
                      - first
                      - by
                    additionalProperties: false
                  does:
                    type: string
                    enum:
                      - mail.read
                      - mail.drafts
                      - mail.send
                      - calendar.read
                      - calendar.freebusy
                      - calendar.shared
                      - calendar.private
                      - calendar.invite
                      - chats.read
                      - chats.send
                      - channels.read
                      - channels.send
                      - contacts.read
                      - files.read
                      - sites.read
                      - tasks.read
                      - tasks.write
                      - notes.read
                      - notes.write
                      - meetings.record
                      - files.create
                      - sites.create
                      - meetings.notice
                      - meetings.transcript
                      - people.search
                  sql:
                    type: object
                    properties:
                      statement:
                        type: string
                      params:
                        type: array
                        items:
                          type: object
                          properties:
                            name:
                              type: string
                            type:
                              type: string
                              enum:
                                - text
                                - integer
                                - number
                                - boolean
                                - date
                                - datetime
                          required:
                            - name
                            - type
                          additionalProperties: false
                      before:
                        type:
                          - string
                          - 'null'
                      maxRows:
                        type:
                          - number
                          - 'null'
                      maxAffected:
                        type:
                          - number
                          - 'null'
                    required:
                      - statement
                      - params
                      - before
                      - maxRows
                      - maxAffected
                    additionalProperties: false
                  optIn:
                    type: string
                    const: bodies
                  page:
                    type: object
                    properties:
                      kind:
                        type: string
                        enum:
                          - read
                          - form
                      url:
                        type: string
                      params:
                        type: array
                        items:
                          type: object
                          properties:
                            name:
                              type: string
                            type:
                              type: string
                              enum:
                                - text
                                - integer
                          required:
                            - name
                            - type
                          additionalProperties: false
                      extract:
                        type: array
                        items:
                          type: object
                          properties:
                            name:
                              type: string
                            selector:
                              type: string
                          required:
                            - name
                            - selector
                          additionalProperties: false
                      fields:
                        type: array
                        items:
                          type: object
                          properties:
                            selector:
                              type: string
                            param:
                              type:
                                - string
                                - 'null'
                            value:
                              type:
                                - string
                                - 'null'
                          required:
                            - selector
                            - param
                            - value
                          additionalProperties: false
                      submit:
                        type:
                          - string
                          - 'null'
                      wait:
                        type:
                          - string
                          - 'null'
                    required:
                      - kind
                      - url
                      - params
                      - extract
                      - fields
                      - submit
                      - wait
                    additionalProperties: false
                  command:
                    type: object
                    properties:
                      program:
                        type: string
                      args:
                        type: array
                        items:
                          type: string
                      line:
                        type: string
                    required:
                      - program
                      - args
                      - line
                    additionalProperties: false
                  machine:
                    type: object
                    properties:
                      target:
                        type: string
                      type:
                        type:
                          - string
                          - 'null'
                      unit:
                        type:
                          - string
                          - 'null'
                      range:
                        type:
                          - string
                          - 'null'
                      zpl:
                        type: string
                    required:
                      - target
                      - type
                      - unit
                      - range
                    additionalProperties: false
                required:
                  - id
                  - key
                  - title
                  - description
                  - effect
                  - level
                  - chosen
                  - source
                  - input
                additionalProperties: false
            test:
              anyOf:
                - type: object
                  properties:
                    at:
                      type: string
                    ok:
                      type: boolean
                    ms:
                      type: number
                    operation:
                      type:
                        - string
                        - 'null'
                    text:
                      type: string
                    sample:
                      anyOf:
                        - type: string
                          maxLength: 4000
                        - type: 'null'
                    problem:
                      anyOf:
                        - type: object
                          properties:
                            code:
                              type: string
                              enum:
                                - auth.scope_missing
                                - auth.no_dcr
                                - auth.cimd_unreachable
                                - auth.no_metadata
                                - auth.sign_in_needed
                                - auth.refused
                                - auth.device_key
                                - http.404_path
                                - http.unreachable
                                - http.tls
                                - rate.limited
                                - shape.empty
                                - shape.unexpected
                                - input.invalid
                                - net.refused
                                - plan.gated
                            fact:
                              type: string
                              maxLength: 300
                            next:
                              anyOf:
                                - type: object
                                  properties:
                                    tool:
                                      type: string
                                      enum:
                                        - system_connect
                                        - system_test
                                        - system_change
                                        - system_live
                                        - connector_change
                                        - secret_link
                                    action:
                                      type: string
                                      maxLength: 60
                                    input:
                                      type: object
                                      propertyNames:
                                        type: string
                                      additionalProperties: {}
                                  required:
                                    - tool
                                    - input
                                  additionalProperties: false
                                - type: 'null'
                            text:
                              type: string
                              maxLength: 400
                            retryAfter:
                              type: integer
                              minimum: 0
                              maximum: 9007199254740991
                          required:
                            - code
                            - fact
                            - next
                            - text
                          additionalProperties: false
                        - type: 'null'
                    signIn:
                      type: string
                      const: unconfirmed
                  required:
                    - at
                    - ok
                    - ms
                    - operation
                    - text
                    - sample
                  additionalProperties: false
                - type: 'null'
            apps:
              type: array
              items:
                type: string
            liveApps:
              type: array
              items:
                type: string
            rollout:
              type: object
              properties:
                read:
                  oneOf:
                    - type: object
                      properties:
                        kind:
                          type: string
                          const: none
                      required:
                        - kind
                      additionalProperties: false
                    - type: object
                      properties:
                        kind:
                          type: string
                          const: me
                      required:
                        - kind
                      additionalProperties: false
                    - type: object
                      properties:
                        kind:
                          type: string
                          const: all
                      required:
                        - kind
                      additionalProperties: false
                    - type: object
                      properties:
                        kind:
                          type: string
                          const: groups
                        groups:
                          maxItems: 50
                          type: array
                          items:
                            type: string
                            minLength: 1
                            maxLength: 200
                        people:
                          maxItems: 50
                          type: array
                          items:
                            type: string
                            minLength: 1
                            maxLength: 200
                      required:
                        - kind
                        - groups
                      additionalProperties: false
                write:
                  oneOf:
                    - type: object
                      properties:
                        kind:
                          type: string
                          const: none
                      required:
                        - kind
                      additionalProperties: false
                    - type: object
                      properties:
                        kind:
                          type: string
                          const: me
                      required:
                        - kind
                      additionalProperties: false
                    - type: object
                      properties:
                        kind:
                          type: string
                          const: all
                      required:
                        - kind
                      additionalProperties: false
                    - type: object
                      properties:
                        kind:
                          type: string
                          const: groups
                        groups:
                          maxItems: 50
                          type: array
                          items:
                            type: string
                            minLength: 1
                            maxLength: 200
                        people:
                          maxItems: 50
                          type: array
                          items:
                            type: string
                            minLength: 1
                            maxLength: 200
                      required:
                        - kind
                        - groups
                      additionalProperties: false
                operations:
                  maxItems: 500
                  type: array
                  items:
                    type: string
                    maxLength: 120
                decidedBy:
                  type: string
                decidedAt:
                  type: string
              required:
                - read
                - write
                - operations
                - decidedBy
                - decidedAt
              additionalProperties: false
            reach:
              type: object
              properties:
                state:
                  type: string
                  enum:
                    - nobody
                    - apps
                    - rollout
                all:
                  type: boolean
                groups:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                people:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                me:
                  type: boolean
                apps:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                writes:
                  type: boolean
                customised:
                  type: boolean
                waiting:
                  type: boolean
              required:
                - state
                - all
                - groups
                - people
                - me
                - apps
                - writes
                - customised
              additionalProperties: false
            calls:
              type: object
              properties:
                ok:
                  type: number
                failed:
                  type: number
                lastAt:
                  type:
                    - string
                    - 'null'
              required:
                - ok
                - failed
                - lastAt
              additionalProperties: false
            liveCopy:
              anyOf:
                - type: object
                  properties:
                    operations:
                      type: number
                    at:
                      type: string
                    tested:
                      type: boolean
                  required:
                    - operations
                    - at
                    - tested
                  additionalProperties: false
                - type: 'null'
            via:
              type: object
              properties:
                connector:
                  type: string
                name:
                  type: string
                online:
                  type: boolean
                key:
                  type: boolean
                cert:
                  type: boolean
                certs:
                  type: boolean
                guide:
                  type: object
                  properties:
                    platform:
                      type: string
                      enum:
                        - linux
                        - docker
                        - kubernetes
                        - macos
                        - windows
                    host:
                      type: string
                      maxLength: 300
                    scheme:
                      type: string
                      enum:
                        - bearer
                        - basic
                    oauth:
                      type: object
                      properties:
                        origin:
                          type: string
                          maxLength: 300
                      required:
                        - origin
                      additionalProperties: false
                    layout:
                      type: string
                      enum:
                        - standard
                        - project
                  required:
                    - platform
                    - host
                    - scheme
                  additionalProperties: false
                oauth:
                  type: object
                  properties:
                    origin:
                      type: string
                      maxLength: 300
                    scopes:
                      maxItems: 20
                      type: array
                      items:
                        type: string
                        maxLength: 200
                    other:
                      type: boolean
                    state:
                      type: string
                      enum:
                        - update
                        - plain
                        - clear
                        - outside
                    missing:
                      type: boolean
                    next:
                      type: object
                      properties:
                        origin:
                          type: string
                          maxLength: 300
                        scopes:
                          maxItems: 20
                          type: array
                          items:
                            type: string
                            maxLength: 200
                      required:
                        - origin
                        - scopes
                      additionalProperties: false
                  required:
                    - origin
                    - scopes
                    - other
                  additionalProperties: false
                signIn:
                  type: object
                  properties:
                    use:
                      type: string
                      enum:
                        - none
                        - own
                        - of
                        - held
                    of:
                      type: object
                      properties:
                        id:
                          type: string
                        name:
                          type: string
                      required:
                        - id
                        - name
                      additionalProperties: false
                    host:
                      type: string
                    waiting:
                      type: boolean
                    gone:
                      type: boolean
                    usedBy:
                      type: array
                      items:
                        type: object
                        properties:
                          id:
                            type: string
                          name:
                            type: string
                        required:
                          - id
                          - name
                        additionalProperties: false
                    offer:
                      type: object
                      properties:
                        host:
                          type: string
                        of:
                          type: object
                          properties:
                            id:
                              type: string
                            name:
                              type: string
                          required:
                            - id
                            - name
                          additionalProperties: false
                        old:
                          type: object
                          properties:
                            line:
                              type: string
                            name:
                              type: string
                          required:
                            - line
                            - name
                          additionalProperties: false
                      required:
                        - host
                      additionalProperties: false
                    kind:
                      type: string
                      enum:
                        - key
                        - basic
                    clicked:
                      type: boolean
                  required:
                    - use
                  additionalProperties: false
                older:
                  type: boolean
              required:
                - connector
                - name
                - online
                - key
              additionalProperties: false
            app:
              type: boolean
            events:
              type: array
              items:
                type: object
                properties:
                  key:
                    type: string
                  title:
                    type: string
                  description:
                    type: string
                  'on':
                    type: boolean
                  address:
                    type:
                      - string
                      - 'null'
                  reachable:
                    type: boolean
                  secret:
                    type: boolean
                  verify:
                    type: string
                    enum:
                      - hmac
                      - signature
                      - token
                  retentionDays:
                    type: number
                  received:
                    type: object
                    properties:
                      count:
                        type: number
                      lastAt:
                        type:
                          - string
                          - 'null'
                    required:
                      - count
                      - lastAt
                    additionalProperties: false
                  refused:
                    type: number
                  starts:
                    type: array
                    items:
                      type: string
                required:
                  - key
                  - title
                  - description
                  - 'on'
                  - address
                  - reachable
                  - secret
                  - verify
                  - retentionDays
                  - received
                  - refused
                  - starts
                additionalProperties: false
            resource:
              type: object
              properties:
                key:
                  type: string
                name:
                  type: string
                location:
                  type: string
                deviceWritable:
                  type: boolean
                write:
                  type: boolean
                groups:
                  anyOf:
                    - type: string
                      const: all
                    - type: array
                      items:
                        type: string
                unsafe:
                  type: boolean
                bodies:
                  type: boolean
                readOnly:
                  type:
                    - boolean
                    - 'null'
                dialect:
                  type: string
                  enum:
                    - postgres
                    - mysql
                    - sqlserver
                hostKey:
                  anyOf:
                    - type: object
                      properties:
                        sha256:
                          type: string
                        pinned:
                          type: string
                          enum:
                            - settings
                            - first-use
                      required:
                        - sha256
                        - pinned
                      additionalProperties: false
                    - type: 'null'
                ready:
                  type: boolean
                missing:
                  type:
                    - string
                    - 'null'
                origins:
                  type: array
                  items:
                    type: string
                login:
                  type: boolean
                engine:
                  type:
                    - string
                    - 'null'
                security:
                  type: string
                  enum:
                    - SignAndEncrypt
                    - Sign
                    - None
                policy:
                  type: string
                serverCert:
                  anyOf:
                    - type: object
                      properties:
                        sha256:
                          type: string
                        pinned:
                          type: string
                          enum:
                            - settings
                            - first-use
                      required:
                        - sha256
                        - pinned
                      additionalProperties: false
                    - type: 'null'
                clientCert:
                  type:
                    - string
                    - 'null'
                connected:
                  type: boolean
                refused:
                  type: array
                  items:
                    type: object
                    properties:
                      key:
                        type: string
                      problem:
                        type: string
                    required:
                      - key
                      - problem
                    additionalProperties: false
              required:
                - key
                - name
                - location
                - deviceWritable
                - write
                - groups
                - unsafe
              additionalProperties: false
            checklist:
              type: object
              properties:
                steps:
                  type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: string
                        enum:
                          - reach
                          - found
                          - signin
                          - chosen
                          - tested
                          - audience
                          - live
                      state:
                        type: string
                        enum:
                          - done
                          - current
                          - open
                      failed:
                        type: boolean
                      device:
                        type: string
                      online:
                        type: boolean
                      kind:
                        type: string
                      operations:
                        type: integer
                        minimum: 0
                        maximum: 9007199254740991
                      auth:
                        type: string
                      place:
                        type: string
                        enum:
                          - none
                          - store
                          - env
                          - device
                          - settings
                          - person
                      env:
                        type: string
                      account:
                        type: string
                      chosen:
                        type: integer
                        minimum: 0
                        maximum: 9007199254740991
                      writes:
                        type: integer
                        minimum: 0
                        maximum: 9007199254740991
                      at:
                        type: string
                      sample:
                        type: boolean
                      text:
                        type: string
                      who:
                        type: string
                        enum:
                          - none
                          - me
                          - all
                          - groups
                          - apps
                      groups:
                        type: integer
                        minimum: 0
                        maximum: 9007199254740991
                      people:
                        type: integer
                        minimum: 0
                        maximum: 9007199254740991
                    required:
                      - id
                      - state
                    additionalProperties: false
                done:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                total:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                next:
                  anyOf:
                    - type: object
                      properties:
                        step:
                          type: string
                          enum:
                            - reach
                            - found
                            - signin
                            - chosen
                            - tested
                            - audience
                            - live
                        action:
                          type: string
                          enum:
                            - draft
                            - device
                            - device-key
                            - key
                            - signin
                            - refresh
                            - choose
                            - test
                            - live
                            - audience
                            - resume
                      required:
                        - step
                        - action
                      additionalProperties: false
                    - type: 'null'
              required:
                - steps
                - done
                - total
                - next
              additionalProperties: false
            createdAt:
              type: string
            createdBy:
              type: string
            updatedAt:
              type: string
          required:
            - id
            - name
            - kind
            - address
            - status
            - statusText
            - dataClass
            - auth
            - operations
            - test
            - apps
            - calls
            - createdAt
            - createdBy
            - updatedAt
          additionalProperties: false
        canEdit:
          type: boolean
        notice:
          type: string
          maxLength: 600
      required:
        - system
        - canEdit
      additionalProperties: false
    ExtChangeBody___schema0:
      anyOf:
        - type: string
          maxLength: 500
        - type: number
        - type: boolean
        - type: 'null'
        - maxItems: 100
          type: array
          items:
            $ref: '#/components/schemas/ExtChangeBody___schema0'
        - type: object
          propertyNames:
            type: string
            maxLength: 80
          additionalProperties:
            $ref: '#/components/schemas/ExtChangeBody___schema0'
    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.