---
title: "Import the bulk of assets (processAssetsBulkImport)"
method: POST
path: "/api/asset/bulk_import"
tags: ["asset-controller"]
---

# Import the bulk of assets (processAssetsBulkImport)

`POST /api/asset/bulk_import`

There's an ability to import the bulk of assets using the only .csv file.

## Request body

- BulkImportRequest
  - `file` string
  - `mapping` Mapping
    - `columns` ColumnMapping[]
      - `type` 'NAME' | 'TYPE' | 'LABEL' | 'SHARED_ATTRIBUTE' | 'SERVER_ATTRIBUTE' | 'TIMESERIES' | 'ACCESS_TOKEN' | 'X509' | 'MQTT_CLIENT_ID' | 'MQTT_USER_NAME' | 'MQTT_PASSWORD' | 'LWM2M_CLIENT_ENDPOINT' | 'LWM2M_CLIENT_SECURITY_CONFIG_MODE' | 'LWM2M_CLIENT_IDENTITY' | 'LWM2M_CLIENT_KEY' | 'LWM2M_CLIENT_CERT' | 'LWM2M_BOOTSTRAP_SERVER_SECURITY_MODE' | 'LWM2M_BOOTSTRAP_SERVER_PUBLIC_KEY_OR_ID' | 'LWM2M_BOOTSTRAP_SERVER_SECRET_KEY' | 'LWM2M_SERVER_SECURITY_MODE' | 'LWM2M_SERVER_CLIENT_PUBLIC_KEY_OR_ID' | 'LWM2M_SERVER_CLIENT_SECRET_KEY' | 'SNMP_HOST' | 'SNMP_PORT' | 'SNMP_VERSION' | 'SNMP_COMMUNITY_STRING' | 'IS_GATEWAY' | 'DESCRIPTION' | 'ROUTING_KEY' | 'SECRET'
      - `key` string
    - `delimiter` string
    - `update` boolean
    - `header` boolean

## Response `200`

OK

- BulkImportResultAsset
  - `created` object
    - `opaque` integer
    - `acquire` integer
    - `release` integer
    - `andIncrement` integer
    - `andDecrement` integer
    - `plain` integer
  - `updated` object
    - `opaque` integer
    - `acquire` integer
    - `release` integer
    - `andIncrement` integer
    - `andDecrement` integer
    - `plain` integer
  - `errors` object
    - `opaque` integer
    - `acquire` integer
    - `release` integer
    - `andIncrement` integer
    - `andDecrement` integer
    - `plain` integer
  - `errorsList` string[]

---

[API](https://skmtc.net/thingsboard/apis/thingsboard-rest-api.md) · [All operations](https://skmtc.net/thingsboard/apis/thingsboard-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/thingsboard/thingsboard-rest-api/revisions/40169ccdec5c/schema)
