---
title: "Bulk update partial fields on multiple SSH hosts"
method: PATCH
path: "/host/bulk-update"
tags: ["SSH"]
---

# Bulk update partial fields on multiple SSH hosts

`PATCH /host/bulk-update`

## Request body

- object
  - `hostIds` number[]
  - `updates` object — Partial fields to apply. Setting folder clears parentHostId and vice versa, since a host is either in a folder or nested under a parent host.
    - `folder` string
    - `parentHostId` integer, nullable

## Response `200`

Bulk update completed.

## Other responses

- `400` — Invalid request body.

---

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