---
title: "Rename a machine"
method: PATCH
path: "/api/v1/machines/{id}/rename"
tags: ["Machines"]
---

# Rename a machine

`PATCH /api/v1/machines/{id}/rename`

## Request

- Base URL: `http://:8080`
- URL: `http://:8080/api/v1/machines/{id}/rename`
- Auth: none declared

Rename a machine.

Auth: Required (bearer token).
Scope: Organization-scoped in authenticated context.
Side effects: May mutate server state.

## Path parameters

- `id` string, required

## Headers

- `Accept` string

## Request body `*/*`

- RenameMachineRequest: RenameMachineRequest schema
  - `name` string, required

## Response `200`

OK

- RenameMachineResponse: RenameMachineResponse schema
  - `id` string, uuid
  - `name` string

## Other responses

- `400`: Bad Request _(validation or deserialization error)_
- `500`: Internal Server Error _(panics)_
- `default`

## Changes

- **2026-04-26** `09f18af670c4`: 3 info
  - api tag `Machines` added
  - api tag `api/v1/machines` removed
  - api tag `{id}` removed
- **2026-04-25** `bd37a091d7b6`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/nixopus/apis/nixopus-api/changes/api/v1/machines/:id/rename/patch.md)

---

[API](https://skmtc.dev/nixopus/apis/nixopus-api.md) - [All operations](https://skmtc.dev/nixopus/apis/nixopus-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nixopus/apis/nixopus-api/revisions/c5bacaea7239?raw)
