> ## Documentation Index
> Fetch the complete documentation index at: https://www.docusnap.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Mehrere Assets anlegen

> Wie `POST /asset`, für bis zu **100** Assets in einem Aufruf und einer
Transaktion — bekannte Assets werden aktualisiert.

Berechtigung: *Schreiben*.




## OpenAPI

````yaml /api-reference/openapi.de.yaml post /asset/bulk
openapi: 3.0.4
info:
  title: Docusnap365 REST API
  version: v1
  description: |
    Öffentliche REST-API von Docusnap365. Lesender Zugriff auf die Assets
    eines Mandanten mit Filter, Sortierung, seitenweiser Ausgabe über Cursor
    und Laden von Asset-Details; schreibender Zugriff über das Anlegen und
    Aktualisieren von Assets.

    **Authentifizierung.** API-Schlüssel im Header `x-api-key`. Schlüssel
    legen Sie in Docusnap365 unter *Verwaltung › API-Schlüssel* an. Jeder
    Schlüssel trägt die Berechtigung *Lesen*; *Schreiben* lässt sich zusätzlich
    vergeben. Lesende Endpunkte verlangen *Lesen*, schreibende *Schreiben*.

    **Sichtbarkeit.** Der Schlüssel gehört einem Benutzer; dessen Rechte
    gelten. Zurückgegeben wird ausschließlich, was die Filter dieses Benutzers
    auf Organisation, Plattform, Domäne und Standort zulassen. Fehlende Rechte
    erzeugen keinen Fehler, sondern eine kleinere Ergebnismenge.

    Geliefert werden nur **aktive** Assets. Gelöschte, archivierte und
    ausgeblendete Assets sind nicht erreichbar, auch nicht über einen Filter
    auf `status`. Assets eines deaktivierten Typs werden nicht zurückgegeben.
servers:
  - url: https://api.docusnap365.com/api/v1
    description: Produktion
security:
  - apiKey: []
tags:
  - name: Assets
    description: Assets lesen, abfragen, anlegen und aktualisieren.
paths:
  /asset/bulk:
    post:
      tags:
        - Assets
      summary: Mehrere Assets anlegen
      description: |
        Wie `POST /asset`, für bis zu **100** Assets in einem Aufruf und einer
        Transaktion — bekannte Assets werden aktualisiert.

        Berechtigung: *Schreiben*.
      operationId: ingestAssetBulk
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: array
              maxItems: 100
              items:
                $ref: '#/components/schemas/AssetBundle'
      responses:
        '200':
          $ref: '#/components/responses/IngestResult'
        '400':
          $ref: '#/components/responses/BadRequest'
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/ServerError'
components:
  schemas:
    AssetBundle:
      type: object
      description: >
        Ein Asset beim Anlegen oder Aktualisieren. Die Feldnamen `object` und
        `objectData` sind Teil der Schnittstelle.
      required:
        - schemaId
      properties:
        id:
          type: string
          format: uuid
          description: Korrelations-ID, optional.
        schemaId:
          type: string
          format: uuid
          description: Typ des Assets. Pflicht, auch wenn `object.schemaId` gesetzt ist.
        object:
          $ref: '#/components/schemas/AssetCore'
        objectData:
          type: object
          additionalProperties: true
          description: Daten des Typs, nach dessen Datendefinition.
        essentials:
          $ref: '#/components/schemas/EssentialsBundle'
        facets:
          type: object
          additionalProperties: true
          description: ITAM- und ISMS-Daten des Assets, je Bereich eine Liste.
      additionalProperties: false
    AssetCore:
      type: object
      description: Stammdaten eines Assets.
      properties:
        id:
          type: string
          format: uuid
        schemaId:
          type: string
          format: uuid
          description: Typ des Assets.
        parentId:
          type: string
          format: uuid
        name:
          type: string
        sourceType:
          type: string
          example: manual
        completenessLevel:
          type: integer
          format: int32
        organizationId:
          type: string
          format: uuid
        locationId:
          type: string
          format: uuid
        platformId:
          type: string
          format: uuid
        domainId:
          type: string
          format: uuid
        version:
          type: integer
          format: int32
        status:
          type: string
        createdAt:
          type: string
          format: date-time
        createdBy:
          type: string
          format: uuid
        modifiedAt:
          type: string
          format: date-time
        modifiedBy:
          type: string
          format: uuid
        deletedAt:
          type: string
          format: date-time
        deletedBy:
          type: string
          format: uuid
      additionalProperties: false
    EssentialsBundle:
      type: object
      description: Kurzansicht des Assets.
      properties:
        sections:
          type: object
          additionalProperties: true
          description: Abschnitte je `essentialType`.
      additionalProperties: false
  responses:
    IngestResult:
      description: Ergebnis des Anlegens oder Aktualisierens.
      content:
        application/json:
          schema:
            type: object
            additionalProperties: true
    BadRequest:
      description: >
        Ungültige Anfrage — unbekanntes Feld, ungültiger Ausdruck in `select`
        oder `search`, fehlender Pflichtwert.
      content:
        text/plain:
          schema:
            type: string
    Forbidden:
      description: API-Schlüssel fehlt oder trägt nicht die erforderliche Berechtigung.
      content:
        text/plain:
          schema:
            type: string
    ServerError:
      description: Unerwarteter Fehler.
      content:
        text/plain:
          schema:
            type: string
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: >
        API-Schlüssel aus Docusnap365 (*Verwaltung › API-Schlüssel*). Lesende
        Endpunkte verlangen die Berechtigung *Lesen*, schreibende *Schreiben*.

````

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