---
title: "Import a batch of hosts to EM"
method: POST
path: "/resources/hosts"
tags: ["resource"]
---

# Import a batch of hosts to EM

`POST /resources/hosts`

import hosts by xlsx file

## Response `200`

OK

- object
  - `code` integer
  - `data` object
    - `flowInfo` StructsAsyncTaskWorkFlowInfo[]
      - `workFlowId` string — Asynchronous task workflow ID
    - `hostIds` string[]
  - `message` string

---

[API](https://skmtc.net/pingcap/apis/em-ui-api.md) · [All operations](https://skmtc.net/pingcap/apis/em-ui-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pingcap/em-ui-api/revisions/631e4b26b7e8/schema)
