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

# CI-Entwurf zurückziehen

> CI-Entwurf zurückziehen.

Im Chat mit «Mono Admin»: .



## OpenAPI

````yaml /api-reference/openapi.json delete /mandanten/{id}/servers/{server}/ci/draft
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}/servers/{server}/ci/draft:
    delete:
      tags:
        - Studio
      summary: CI-Entwurf zurückziehen
      description: |-
        CI-Entwurf zurückziehen.

        Im Chat mit «Mono Admin»: .
      operationId: deleteMandantenByIdServersByServerCiDraft
      parameters:
        - name: id
          in: path
          required: true
          description: Der Mandant (seine ID auf diesem Node).
          schema:
            type: string
          example: muster-ag
        - name: server
          in: path
          required: true
          description: Der MCP-Server.
          schema:
            type: string
          example: muster-gateway
      responses:
        '200':
          description: Erfolgreich.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CiDraftResponse'
        '401':
          $ref: '#/components/responses/Fehler401'
        '403':
          $ref: '#/components/responses/Fehler403'
        '404':
          $ref: '#/components/responses/Fehler404'
components:
  schemas:
    CiDraftResponse:
      type: object
      properties:
        draft:
          type: object
          properties:
            'n':
              type: integer
              exclusiveMinimum: 0
              maximum: 9007199254740991
            by:
              type: string
            at:
              type: string
              minLength: 1
            changes:
              type: array
              items:
                type: string
            said:
              type: array
              items:
                anyOf:
                  - type: object
                    properties:
                      code:
                        type: string
                        maxLength: 60
                      vars:
                        type: object
                        propertyNames:
                          type: string
                        additionalProperties:
                          type:
                            - string
                            - number
                    required:
                      - code
                    additionalProperties: false
                  - type: 'null'
            values:
              type: object
              properties:
                booklet:
                  anyOf:
                    - type: object
                      properties:
                        file:
                          type: string
                        pages:
                          type: integer
                          minimum: -9007199254740991
                          maximum: 9007199254740991
                        readAt:
                          type: string
                          minLength: 1
                      required:
                        - file
                        - pages
                        - readAt
                      additionalProperties: false
                    - type: 'null'
                logos:
                  type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: string
                        enum:
                          - haupt
                          - negativ
                          - signet
                      file:
                        type: string
                      format:
                        type: string
                        enum:
                          - SVG
                          - PNG
                      sizeKb:
                        type: number
                        minimum: 0
                      src:
                        type: string
                      standard:
                        type: string
                      standardSrc:
                        type: string
                      changed:
                        anyOf:
                          - type: object
                            properties:
                              by:
                                type: string
                              at:
                                type: string
                                minLength: 1
                            required:
                              - by
                              - at
                            additionalProperties: false
                          - type: 'null'
                    required:
                      - id
                      - file
                      - format
                      - sizeKb
                      - src
                      - standard
                      - standardSrc
                      - changed
                    additionalProperties: false
                colors:
                  type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: string
                        enum:
                          - primaer
                          - akzent
                          - text
                          - hell
                          - erfolg
                      hex:
                        type: string
                      standard:
                        type: string
                      changed:
                        anyOf:
                          - type: object
                            properties:
                              by:
                                type: string
                              at:
                                type: string
                                minLength: 1
                            required:
                              - by
                              - at
                            additionalProperties: false
                          - type: 'null'
                    required:
                      - id
                      - hex
                      - standard
                      - changed
                    additionalProperties: false
                fonts:
                  type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: string
                        enum:
                          - ueberschriften
                          - text
                      family:
                        type: string
                      stack:
                        type: string
                      license:
                        type: string
                        enum:
                          - ok
                          - pruefen
                      licenseNote:
                        type: string
                      standard:
                        type: string
                      changed:
                        anyOf:
                          - type: object
                            properties:
                              by:
                                type: string
                              at:
                                type: string
                                minLength: 1
                            required:
                              - by
                              - at
                            additionalProperties: false
                          - type: 'null'
                      files:
                        type: array
                        items:
                          type: object
                          properties:
                            style:
                              type: string
                              enum:
                                - regular
                                - bold
                                - italic
                                - boldItalic
                            file:
                              type: string
                            family:
                              type: string
                            key:
                              type: string
                            sizeKb:
                              type: number
                              minimum: 0
                            glyphs:
                              type: integer
                              minimum: 0
                              maximum: 9007199254740991
                            fsType:
                              type: string
                              enum:
                                - installable
                                - editable
                                - preview
                                - restricted
                                - bitmap
                          required:
                            - style
                            - file
                            - family
                            - key
                            - sizeKb
                            - glyphs
                            - fsType
                          additionalProperties: false
                      embed:
                        type: object
                        properties:
                          allowed:
                            type: boolean
                          note:
                            type: string
                          changed:
                            anyOf:
                              - type: object
                                properties:
                                  by:
                                    type: string
                                  at:
                                    type: string
                                    minLength: 1
                                required:
                                  - by
                                  - at
                                additionalProperties: false
                              - type: 'null'
                        required:
                          - allowed
                          - note
                          - changed
                        additionalProperties: false
                    required:
                      - id
                      - family
                      - stack
                      - license
                      - licenseNote
                      - standard
                      - changed
                    additionalProperties: false
                fallback:
                  type: string
                rules:
                  type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: string
                      text:
                        type: string
                      page:
                        anyOf:
                          - type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                          - type: 'null'
                      kind:
                        type: string
                        enum:
                          - logo
                          - farbe
                          - schrift
                          - sprache
                          - dokument
                      state:
                        type: string
                        enum:
                          - ok
                          - pruefen
                      changed:
                        anyOf:
                          - type: object
                            properties:
                              by:
                                type: string
                              at:
                                type: string
                                minLength: 1
                            required:
                              - by
                              - at
                            additionalProperties: false
                          - type: 'null'
                      test:
                        anyOf:
                          - type: object
                            properties:
                              never:
                                minItems: 1
                                maxItems: 12
                                type: array
                                items:
                                  type: string
                                  minLength: 1
                                  maxLength: 80
                              prefer:
                                type: string
                                maxLength: 80
                              ignoreCase:
                                type: boolean
                            required:
                              - never
                            additionalProperties: false
                          - type: 'null'
                    required:
                      - id
                      - text
                      - page
                      - kind
                      - state
                      - changed
                    additionalProperties: false
                checks:
                  type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: string
                        enum:
                          - kontrast
                          - schutzzone
                          - schrift
                          - anrede
                          - akzent
                      mode:
                        type: string
                        enum:
                          - korrigieren
                          - anhalten
                          - melden
                      standard:
                        type: string
                        enum:
                          - korrigieren
                          - anhalten
                          - melden
                      changed:
                        anyOf:
                          - type: object
                            properties:
                              by:
                                type: string
                              at:
                                type: string
                                minLength: 1
                            required:
                              - by
                              - at
                            additionalProperties: false
                          - type: 'null'
                    required:
                      - id
                      - mode
                      - standard
                      - changed
                    additionalProperties: false
                business:
                  type: object
                  properties:
                    absender:
                      anyOf:
                        - type: string
                          maxLength: 300
                        - type: 'null'
                    uid:
                      anyOf:
                        - type: string
                          maxLength: 40
                        - type: 'null'
                    iban:
                      anyOf:
                        - type: string
                          maxLength: 40
                        - type: 'null'
                    qrIban:
                      anyOf:
                        - type: string
                          maxLength: 40
                        - type: 'null'
                    fusszeile:
                      anyOf:
                        - type: string
                          maxLength: 200
                        - type: 'null'
                    changed:
                      anyOf:
                        - type: object
                          properties:
                            by:
                              type: string
                            at:
                              type: string
                              minLength: 1
                          required:
                            - by
                            - at
                          additionalProperties: false
                        - type: 'null'
                  required:
                    - absender
                    - uid
                    - iban
                    - qrIban
                    - fusszeile
                    - changed
                  additionalProperties: false
                palette:
                  type: array
                  items:
                    type: object
                    properties:
                      role:
                        type: string
                        enum:
                          - sekundaer
                          - neutral
                          - weitere
                      hex:
                        type: string
                      name:
                        type: string
                    required:
                      - role
                      - hex
                      - name
                    additionalProperties: false
                letterhead:
                  anyOf:
                    - type: object
                      properties:
                        paper:
                          type: object
                          properties:
                            widthMm:
                              type: number
                            heightMm:
                              type: number
                            name:
                              anyOf:
                                - type: string
                                  enum:
                                    - A4
                                    - A5
                                    - Letter
                                - type: 'null'
                          required:
                            - widthMm
                            - heightMm
                            - name
                          additionalProperties: false
                        margins:
                          type: object
                          properties:
                            top:
                              type: number
                            right:
                              type: number
                            bottom:
                              type: number
                            left:
                              type: number
                          required:
                            - top
                            - right
                            - bottom
                            - left
                          additionalProperties: false
                        headerMm:
                          type:
                            - number
                            - 'null'
                        footerMm:
                          type:
                            - number
                            - 'null'
                        logo:
                          anyOf:
                            - type: object
                              properties:
                                align:
                                  type: string
                                  enum:
                                    - links
                                    - mitte
                                    - rechts
                                widthMm:
                                  type:
                                    - number
                                    - 'null'
                              required:
                                - align
                                - widthMm
                              additionalProperties: false
                            - type: 'null'
                        sender:
                          anyOf:
                            - type: object
                              properties:
                                sizePt:
                                  type:
                                    - number
                                    - 'null'
                                color:
                                  type:
                                    - string
                                    - 'null'
                              required:
                                - sizePt
                                - color
                              additionalProperties: false
                            - type: 'null'
                        footer:
                          type: array
                          items:
                            type: string
                            enum:
                              - uid
                              - iban
                              - seite
                        source:
                          type: string
                        template:
                          type: object
                          properties:
                            file:
                              type: string
                            key:
                              type: string
                            sizeKb:
                              type: number
                              minimum: 0
                            recognized:
                              type: object
                              properties:
                                format:
                                  type: string
                                kind:
                                  type: string
                                fields:
                                  type: array
                                  items: {}
                                computes:
                                  type: array
                                  items:
                                    type: string
                                fit:
                                  type: string
                                reason:
                                  type:
                                    - string
                                    - 'null'
                                text:
                                  anyOf:
                                    - type: string
                                      maxLength: 40000
                                    - type: 'null'
                                hash:
                                  type: string
                              required:
                                - format
                                - kind
                                - fields
                                - computes
                                - fit
                                - reason
                                - text
                                - hash
                              additionalProperties: false
                          required:
                            - file
                            - key
                            - sizeKb
                          additionalProperties: false
                        changed:
                          anyOf:
                            - type: object
                              properties:
                                by:
                                  type: string
                                at:
                                  type: string
                                  minLength: 1
                              required:
                                - by
                                - at
                              additionalProperties: false
                            - type: 'null'
                      required:
                        - paper
                        - margins
                        - headerMm
                        - footerMm
                        - logo
                        - sender
                        - footer
                        - source
                        - changed
                      additionalProperties: false
                    - type: 'null'
                master:
                  anyOf:
                    - type: object
                      properties:
                        ratio:
                          anyOf:
                            - type: string
                              enum:
                                - '16:9'
                                - '4:3'
                                - '16:10'
                            - type: 'null'
                        background:
                          type:
                            - string
                            - 'null'
                        title:
                          type: object
                          properties:
                            font:
                              type:
                                - string
                                - 'null'
                            sizePt:
                              type:
                                - number
                                - 'null'
                            color:
                              type:
                                - string
                                - 'null'
                          required:
                            - font
                            - sizePt
                            - color
                          additionalProperties: false
                        body:
                          type: object
                          properties:
                            font:
                              type:
                                - string
                                - 'null'
                            sizePt:
                              type:
                                - number
                                - 'null'
                            color:
                              type:
                                - string
                                - 'null'
                          required:
                            - font
                            - sizePt
                            - color
                          additionalProperties: false
                        logo:
                          anyOf:
                            - type: object
                              properties:
                                x:
                                  type: number
                                'y':
                                  type: number
                                w:
                                  type: number
                              required:
                                - x
                                - 'y'
                                - w
                              additionalProperties: false
                            - type: 'null'
                        layouts:
                          type: array
                          items:
                            type: string
                        source:
                          type: string
                        template:
                          type: object
                          properties:
                            file:
                              type: string
                            key:
                              type: string
                            sizeKb:
                              type: number
                              minimum: 0
                            recognized:
                              type: object
                              properties:
                                format:
                                  type: string
                                kind:
                                  type: string
                                fields:
                                  type: array
                                  items: {}
                                computes:
                                  type: array
                                  items:
                                    type: string
                                fit:
                                  type: string
                                reason:
                                  type:
                                    - string
                                    - 'null'
                                text:
                                  anyOf:
                                    - type: string
                                      maxLength: 40000
                                    - type: 'null'
                                hash:
                                  type: string
                              required:
                                - format
                                - kind
                                - fields
                                - computes
                                - fit
                                - reason
                                - text
                                - hash
                              additionalProperties: false
                          required:
                            - file
                            - key
                            - sizeKb
                          additionalProperties: false
                        changed:
                          anyOf:
                            - type: object
                              properties:
                                by:
                                  type: string
                                at:
                                  type: string
                                  minLength: 1
                              required:
                                - by
                                - at
                              additionalProperties: false
                            - type: 'null'
                      required:
                        - ratio
                        - background
                        - title
                        - body
                        - logo
                        - layouts
                        - source
                        - changed
                      additionalProperties: false
                    - type: 'null'
                unterlagen:
                  type: object
                  properties:
                    modell:
                      type: boolean
                    changed:
                      anyOf:
                        - type: object
                          properties:
                            by:
                              type: string
                            at:
                              type: string
                              minLength: 1
                          required:
                            - by
                            - at
                          additionalProperties: false
                        - type: 'null'
                  required:
                    - modell
                    - changed
                  additionalProperties: false
              required:
                - booklet
                - logos
                - colors
                - fonts
                - fallback
                - rules
                - checks
              additionalProperties: false
          required:
            - 'n'
            - by
            - at
            - changes
            - values
          additionalProperties: false
      required:
        - draft
      additionalProperties: false
    Fehler:
      type: object
      description: >-
        Eine Ablehnung: ein fester Code und ein Satz auf Deutsch, der sagt, was
        zu tun ist.
      properties:
        error:
          type: string
          description: Der Code (`not_found`, `forbidden`, `invalid_input` …).
          examples:
            - forbidden
        message:
          type: string
          description: Der Grund in Worten.
          examples:
            - Nur für Admins dieses Mandanten
        reason:
          type: string
          description: Ein fester Code für den Grund, wo es einen gibt.
          examples:
            - admins_only
      required:
        - error
        - message
  responses:
    Fehler401:
      description: 'Anmeldung nötig: Der Bearer-Token fehlt oder gilt nicht mehr.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Fehler'
    Fehler403:
      description: Die Person darf das nicht (zum Beispiel nur Admins des Mandanten).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Fehler'
    Fehler404:
      description: Das Objekt ist auf diesem Node nicht bekannt.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Fehler'
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Ein Access-Token des Node. Die Console holt ihn über die Anmeldung des
        Node (`/oauth/authorize`, PKCE, Client `mono-console`); in der
        Entwicklung nimmt ein Node mit Dev-Anmeldung auch einen Dev-Token.

````

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