---
title: "Add or update hosts in Grendel"
method: POST
path: "/host"
tags: ["host"]
---

# Add or update hosts in Grendel

`POST /host`

## Request body

- Host[]
  - `id` string
  - `name` string, required
  - `provision` boolean
  - `firmware` string
  - `boot_image` string
  - `interfaces` NetInterface[]
    - `mac` string
    - `name` string
    - `ip` string
    - `fqdn` string
    - `bmc` boolean

## Response `201`

successfully stored hosts

## Other responses

- `400` — Invalid host input supplied
- `500` — Failed to store hosts in database

## Changes

- **2024-12-03** `29c6a9c3f49b` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/ubccr/apis/grendel-api/changes/host/post.md)

---

[API](https://skmtc.dev/ubccr/apis/grendel-api.md) · [All operations](https://skmtc.dev/ubccr/apis/grendel-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ubccr/grendel-api/revisions/29c6a9c3f49b/schema)
