---
title: "Bulk Import Device Lines"
method: POST
path: "/v2/partition/{partitionId}/account/{accountId}/device/{macAddress}"
tags: ["Account Device"]
---

# Bulk Import Device Lines

`POST /v2/partition/{partitionId}/account/{accountId}/device/{macAddress}`

## Request

- Base URL: `https://api.alianza.com`
- URL: `https://api.alianza.com/v2/partition/{partitionId}/account/{accountId}/device/{macAddress}`
- Auth: API key in header `X-AUTH-TOKEN`
- TypeScript: <https://skmtc.dev/alianza/apis/alianza-public-api/docs/v2/partition/:partitionId/account/:accountId/device/:macAddress/post.ts> (a function with typed inputs; its response is checked against the schema)

Used to import a configuration for the device specified by the supplied mac address. <span hidden>Refer to the <a href="deviceLineBulkImport.html"> Device Line Bulk Import Documentation </a> for more information on using this feature. For information on the Device Lines represented in the file, please refer to <a href="deviceLineTypes.html">Device Line Types</a></span>

## Path parameters

- `accountId` string, required
- `macAddress` string, required
- `partitionId` string, required

## Request body `multipart/form-data`

- MultipartFormDataInput
  - `file` string, binary

## Response `201`

An empty list is returned if there are no errors.

- FileImportValidationErrorX[]
  - `lineNumber` integer
  - `error` string
  - `column` string
  - `input` string

## Other responses

- `400`: Error within the file
- `401`: Unauthorized
- `404`: PartitionId, AccountId, or MacAddress is not found

---

[API](https://skmtc.dev/alianza/apis/alianza-public-api.md) - [All operations](https://skmtc.dev/alianza/apis/alianza-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/alianza/apis/alianza-public-api/revisions/7223246c352c?raw)
