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

# «Jetzt aktualisieren», «Pausieren», «Fortsetzen» des Selbst-Updates (ADR-0057), «Jetzt übernehmen (vor dem Ring)», «Host aktualisieren», «Sicherung einrichten»

> «Jetzt aktualisieren», «Pausieren», «Fortsetzen» des Selbst-Updates (ADR-0057), «Jetzt übernehmen (vor dem Ring)», «Host aktualisieren», «Sicherung einrichten».

Im Chat mit «Mono Admin»: .



## OpenAPI

````yaml /api-reference/openapi.json post /mandanten/{id}/operations/updates
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}/operations/updates:
    post:
      tags:
        - Betrieb
      summary: >-
        «Jetzt aktualisieren», «Pausieren», «Fortsetzen» des Selbst-Updates
        (ADR-0057), «Jetzt übernehmen (vor dem Ring)», «Host aktualisieren»,
        «Sicherung einrichten»
      description: >-
        «Jetzt aktualisieren», «Pausieren», «Fortsetzen» des Selbst-Updates
        (ADR-0057), «Jetzt übernehmen (vor dem Ring)», «Host aktualisieren»,
        «Sicherung einrichten».


        Im Chat mit «Mono Admin»: .
      operationId: postMandantenByIdOperationsUpdates
      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/UpdateActionRequest'
      responses:
        '200':
          description: Erfolgreich.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateActionResponse'
        '400':
          $ref: '#/components/responses/Fehler400'
        '401':
          $ref: '#/components/responses/Fehler401'
        '403':
          $ref: '#/components/responses/Fehler403'
        '404':
          $ref: '#/components/responses/Fehler404'
components:
  schemas:
    UpdateActionRequest:
      type: object
      properties:
        action:
          type: string
          enum:
            - now
            - pause
            - resume
            - early
            - host_now
            - backup_setup
        version:
          type: string
          maxLength: 40
        members:
          maxItems: 64
          type: array
          items:
            type: string
            maxLength: 32
        backup:
          type: object
          properties:
            keepDays:
              anyOf:
                - type: number
                  const: 7
                - type: number
                  const: 14
                - type: number
                  const: 30
                - type: number
                  const: 90
            copyTo:
              anyOf:
                - type: string
                  pattern: >-
                    ^[A-Za-z0-9._-]{1,64}@[A-Za-z0-9.-]{1,253}:\/[A-Za-z0-9._/-]{0,200}$
                - type: 'null'
            recipient:
              anyOf:
                - type: string
                  pattern: ^age1[0-9a-z]{58}$
                - type: 'null'
          required:
            - keepDays
            - copyTo
            - recipient
      required:
        - action
    UpdateActionResponse:
      type: object
      properties:
        updates:
          type: object
          properties:
            updater:
              type: string
              enum:
                - running
                - stale
                - missing
            ring:
              type: string
              enum:
                - canary
                - early
                - stable
            ringText:
              type: string
            ringCustom:
              type: boolean
            window:
              type: string
            windowText:
              type: string
            windowParts:
              anyOf:
                - type: object
                  properties:
                    days:
                      type: array
                      items:
                        type: integer
                        minimum: 0
                        maximum: 6
                    from:
                      type: number
                    to:
                      type: number
                    always:
                      type: boolean
                  required:
                    - days
                    - from
                    - to
                    - always
                  additionalProperties: false
                - type: 'null'
            windowCustom:
              type: boolean
            auto:
              type: boolean
            feedCustom:
              type: boolean
            checkedAt:
              anyOf:
                - type: string
                  minLength: 1
                - type: 'null'
            nextWindowAt:
              anyOf:
                - type: string
                  minLength: 1
                - type: 'null'
            available:
              anyOf:
                - type: object
                  properties:
                    version:
                      type: string
                    publishedAt:
                      type: string
                      minLength: 1
                    eligibleAt:
                      type: string
                      minLength: 1
                    migration:
                      type: string
                  required:
                    - version
                    - publishedAt
                    - eligibleAt
                    - migration
                  additionalProperties: false
                - type: 'null'
            pending:
              anyOf:
                - type: object
                  properties:
                    version:
                      type: string
                    waitsFor:
                      type: string
                      enum:
                        - window
                        - paused
                        - auto-off
                  required:
                    - version
                    - waitsFor
                  additionalProperties: false
                - type: 'null'
            paused:
              anyOf:
                - type: object
                  properties:
                    at:
                      type: string
                      minLength: 1
                    by:
                      type: string
                  required:
                    - at
                    - by
                  additionalProperties: false
                - type: 'null'
            requested:
              anyOf:
                - type: object
                  properties:
                    at:
                      type: string
                      minLength: 1
                    by:
                      type: string
                  required:
                    - at
                    - by
                  additionalProperties: false
                - type: 'null'
            refusedRequest:
              type:
                - string
                - 'null'
            refusedCode:
              anyOf:
                - type: string
                  maxLength: 40
                - type: 'null'
            last:
              anyOf:
                - type: object
                  properties:
                    at:
                      type: string
                      minLength: 1
                    from:
                      type: string
                    to:
                      type: string
                    result:
                      type: string
                      enum:
                        - ok
                        - rolled-back
                        - failed
                        - refused
                    reason:
                      type:
                        - string
                        - 'null'
                    durationSec:
                      type: number
                    trigger:
                      type: string
                      enum:
                        - window
                        - request
                    early:
                      type: boolean
                    host:
                      type: boolean
                  required:
                    - at
                    - from
                    - to
                    - result
                    - reason
                    - durationSec
                    - trigger
                  additionalProperties: false
                - type: 'null'
            history:
              type: array
              items:
                type: object
                properties:
                  at:
                    type: string
                    minLength: 1
                  from:
                    type: string
                  to:
                    type: string
                  result:
                    type: string
                    enum:
                      - ok
                      - rolled-back
                      - failed
                      - refused
                  reason:
                    type:
                      - string
                      - 'null'
                  durationSec:
                    type: number
                  trigger:
                    type: string
                    enum:
                      - window
                      - request
                  early:
                    type: boolean
                  host:
                    type: boolean
                required:
                  - at
                  - from
                  - to
                  - result
                  - reason
                  - durationSec
                  - trigger
                additionalProperties: false
            problem:
              anyOf:
                - type: object
                  properties:
                    code:
                      type: string
                    text:
                      type: string
                    at:
                      type: string
                      minLength: 1
                    cause:
                      type: string
                      maxLength: 40
                    line:
                      type: string
                      pattern: >-
                        ^curl -fsSL (?:--proto '=https' --proto-redir '=https'
                        --max-redirs 2
                        )?https:\/\/releases(?:\.staging)?\.cloud\.ask-mono\.ch(?:\/v\/\d{1,6}\.\d{1,6}\.\d{1,6}(?:-rc\.\d{1,6})?)?\/install
                        \| sh -s -- --slug [a-z0-9][a-z0-9-]{0,62}$
                    path:
                      type: string
                      pattern: ^\/[A-Za-z0-9._@+/-]{0,99}$
                  required:
                    - code
                    - text
                    - at
                  additionalProperties: false
                - type: 'null'
            repaired:
              type: object
              properties:
                at:
                  type: string
                  minLength: 1
                from:
                  type: string
                  enum:
                    - adopt
                    - single
              required:
                - at
                - from
              additionalProperties: false
            shared:
              type: boolean
            can:
              type: object
              properties:
                now:
                  type:
                    - string
                    - 'null'
                pause:
                  type:
                    - string
                    - 'null'
              required:
                - now
                - pause
              additionalProperties: false
            canCode:
              type: object
              properties:
                now:
                  anyOf:
                    - type: string
                      maxLength: 40
                    - type: 'null'
                pause:
                  anyOf:
                    - type: string
                      maxLength: 40
                    - type: 'null'
              required:
                - now
                - pause
              additionalProperties: false
            early:
              anyOf:
                - type: object
                  properties:
                    version:
                      type: string
                    publishedAt:
                      type: string
                      minLength: 1
                    eligibleAt:
                      type: string
                      minLength: 1
                    migration:
                      type: string
                    requested:
                      anyOf:
                        - type: object
                          properties:
                            at:
                              type: string
                              minLength: 1
                            by:
                              type: string
                          required:
                            - at
                            - by
                          additionalProperties: false
                        - type: 'null'
                    can:
                      type:
                        - string
                        - 'null'
                    canCode:
                      anyOf:
                        - type: string
                          maxLength: 40
                        - type: 'null'
                  required:
                    - version
                    - publishedAt
                    - eligibleAt
                    - migration
                    - requested
                    - can
                    - canCode
                  additionalProperties: false
                - type: 'null'
            host:
              anyOf:
                - type: object
                  properties:
                    self:
                      type: string
                    members:
                      type: array
                      items:
                        type: object
                        properties:
                          key:
                            type: string
                          version:
                            type:
                              - string
                              - 'null'
                        required:
                          - key
                          - version
                        additionalProperties: false
                    version:
                      type:
                        - string
                        - 'null'
                    early:
                      type: boolean
                    eligibleAt:
                      anyOf:
                        - type: string
                          minLength: 1
                        - type: 'null'
                    waiting:
                      anyOf:
                        - type: object
                          properties:
                            version:
                              type: string
                            early:
                              type: boolean
                            confirmed:
                              type: array
                              items:
                                type: string
                            at:
                              type: string
                              minLength: 1
                          required:
                            - version
                            - early
                            - confirmed
                            - at
                          additionalProperties: false
                        - type: 'null'
                    confirmedHere:
                      type: boolean
                    can:
                      type:
                        - string
                        - 'null'
                    canCode:
                      anyOf:
                        - type: string
                          maxLength: 40
                        - type: 'null'
                  required:
                    - self
                    - members
                    - version
                    - early
                    - eligibleAt
                    - waiting
                    - confirmedHere
                    - can
                    - canCode
                  additionalProperties: false
                - type: 'null'
            turnOn:
              anyOf:
                - type: string
                  maxLength: 400
                - type: 'null'
            offReason:
              anyOf:
                - type: string
                  enum:
                    - installed_without
                    - turned_off
                - type: 'null'
            settingUp:
              type: boolean
            takeRefused:
              anyOf:
                - type: object
                  properties:
                    code:
                      type: string
                    version:
                      type: string
                    at:
                      type: string
                      minLength: 1
                    text:
                      type: string
                  required:
                    - code
                    - version
                    - at
                    - text
                  additionalProperties: false
                - type: 'null'
            backup:
              type: object
              properties:
                can:
                  type:
                    - string
                    - 'null'
                canCode:
                  anyOf:
                    - type: string
                      maxLength: 40
                    - type: 'null'
                requested:
                  anyOf:
                    - type: object
                      properties:
                        at:
                          type: string
                          minLength: 1
                        by:
                          type: string
                        keepDays:
                          type: number
                        copyTo:
                          type:
                            - string
                            - 'null'
                      required:
                        - at
                        - by
                        - keepDays
                        - copyTo
                      additionalProperties: false
                    - type: 'null'
                waiting:
                  anyOf:
                    - type: object
                      properties:
                        confirmed:
                          type: array
                          items:
                            type: string
                        at:
                          type: string
                          minLength: 1
                      required:
                        - confirmed
                        - at
                      additionalProperties: false
                    - type: 'null'
                confirmedHere:
                  type: boolean
                last:
                  anyOf:
                    - type: object
                      properties:
                        at:
                          type: string
                          minLength: 1
                        ok:
                          type: boolean
                        code:
                          type:
                            - string
                            - 'null'
                        text:
                          type:
                            - string
                            - 'null'
                      required:
                        - at
                        - ok
                        - code
                        - text
                      additionalProperties: false
                    - type: 'null'
              required:
                - can
                - canCode
                - requested
                - waiting
                - confirmedHere
                - last
              additionalProperties: false
          required:
            - updater
            - ring
            - ringText
            - ringCustom
            - window
            - windowText
            - windowCustom
            - auto
            - feedCustom
            - checkedAt
            - nextWindowAt
            - available
            - pending
            - paused
            - requested
            - refusedRequest
            - last
            - history
            - problem
            - shared
            - can
          additionalProperties: false
        text:
          type: string
      required:
        - updates
        - text
      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.