---
title: "boot image add"
method: POST
path: "/v1/images"
tags: ["v1", "images"]
---

# boot image add

`POST /v1/images`

#### Controller: 

`github.com/ubccr/grendel/internal/api.(*Handler).BootImageAdd`

#### Middlewares:

- `github.com/go-fuego/fuego.defaultLogger.middleware`
- `github.com/ubccr/grendel/internal/api.(*Handler).authMiddleware`

---

Add images

## Headers

- `Accept` string

## Request body

- BootImageAddRequest — BootImageAddRequest schema
  - `boot_images` object[]
    - `cmdline` string
    - `id` integer, nullable
    - `initrd` string[]
    - `kernel` string
    - `liveimg` string
    - `name` string
    - `provision_templates` object, nullable
    - `uid` string, nullable
    - `verify` boolean

## Response `200`

OK

- GenericResponse — GenericResponse schema
  - `changed` integer
  - `detail` string
  - `title` string

## Other responses

- `default` — Default Error

---

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