---
title: "Bulk Import"
method: POST
path: "/api/admin/switches/bulk-import"
tags: ["Admin: Switches"]
---

# Bulk Import

`POST /api/admin/switches/bulk-import`

## Request

- Base URL: `https://api.fiber.ac` (the document declares no server; this is the origin it was published from)
- URL: `https://api.fiber.ac/api/admin/switches/bulk-import`
- Auth: none declared

## Request body

- BulkImportRequest: CSV/JSON 일괄 import. CSV header 고정: name,vendor,mgmt_ip,gnmi_port,role,rack_id,pod_id,username,password,ssh_key,tenant_id,poll_interval_s
  - `format` 'csv' | 'json'
  - `data` string, required: CSV 텍스트 또는 JSON 배열 문자열
  - `dry_run` boolean: 검증만 수행, DB 변경 없음
  - `default_tenant_id` string
  - `default_poll_interval_s` integer

## Response `200`

Successful Response

- BulkImportResult
  - `accepted` integer, required
  - `rejected` integer, required
  - `created_ids` integer[], required
  - `errors` BulkImportError[], required
    - `row` integer, required
    - `name` string, nullable
    - `error` string, required
  - `dry_run` boolean, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/fiber-ac/apis/fiber-api.md) · [All operations](https://skmtc.dev/fiber-ac/apis/fiber-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fiber-ac/apis/fiber-api/revisions/58267250d793?raw)
