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

# Create several assets

> Like `POST /asset`, for up to **100** assets in one call and one
transaction — known assets are updated.

Permission: *Write*.




## OpenAPI

````yaml /api-reference/openapi.en.yaml post /asset/bulk
openapi: 3.0.4
info:
  title: Docusnap365 REST API
  version: v1
  description: |
    Public REST API of Docusnap365. Read access to a tenant's assets with
    filtering, sorting, cursor-based paging and loading of asset details;
    write access through creating and updating assets.

    **Authentication.** API key in the `x-api-key` header. You create keys in
    Docusnap365 under *Administration › API keys*. Every key carries the
    *Read* permission; *Write* can be granted in addition. Read endpoints
    require *Read*, write endpoints require *Write*.

    **Visibility.** The key belongs to a user, and that user's rights apply.
    Only what the user's filters on organization, platform, domain and
    location allow is returned. Missing rights do not raise an error — they
    yield a smaller result set.

    Only **active** assets are returned. Deleted, archived and hidden assets
    cannot be reached, not even through a filter on `status`. Assets of a
    deactivated type are not returned.
servers:
  - url: https://api.docusnap365.com/api/v1
    description: Production
security:
  - apiKey: []
tags:
  - name: Assets
    description: Read, query, create and update assets.
paths:
  /asset/bulk:
    post:
      tags:
        - Assets
      summary: Create several assets
      description: |
        Like `POST /asset`, for up to **100** assets in one call and one
        transaction — known assets are updated.

        Permission: *Write*.
      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: >
        An asset as created or updated. The field names `object` and
        `objectData` are part of the interface.
      required:
        - schemaId
      properties:
        id:
          type: string
          format: uuid
          description: Correlation ID, optional.
        schemaId:
          type: string
          format: uuid
          description: Type of the asset. Required even if `object.schemaId` is set.
        object:
          $ref: '#/components/schemas/AssetCore'
        objectData:
          type: object
          additionalProperties: true
          description: Data of the type, following its data definition.
        essentials:
          $ref: '#/components/schemas/EssentialsBundle'
        facets:
          type: object
          additionalProperties: true
          description: ITAM and ISMS data of the asset, one list per area.
      additionalProperties: false
    AssetCore:
      type: object
      description: Core data of an asset.
      properties:
        id:
          type: string
          format: uuid
        schemaId:
          type: string
          format: uuid
          description: Type of the asset.
        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: Quick view of the asset.
      properties:
        sections:
          type: object
          additionalProperties: true
          description: Sections per `essentialType`.
      additionalProperties: false
  responses:
    IngestResult:
      description: Result of the create or update.
      content:
        application/json:
          schema:
            type: object
            additionalProperties: true
    BadRequest:
      description: >
        Invalid request — unknown field, invalid expression in `select` or
        `search`, missing required value.
      content:
        text/plain:
          schema:
            type: string
    Forbidden:
      description: API key missing or without the required permission.
      content:
        text/plain:
          schema:
            type: string
    ServerError:
      description: Unexpected error.
      content:
        text/plain:
          schema:
            type: string
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: >
        API key from Docusnap365 (*Administration › API keys*). Read endpoints
        require the *Read* permission, write endpoints require *Write*.

````

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