---
title: "Rename Field"
method: PATCH
path: "/v0/logs/rename_field"
tags: ["Logs"]
---

# Rename Field

`PATCH /v0/logs/rename_field`

Renames a field across all logs in a project. This includes:
- Updating the field type record
- Renaming the field in all logs (regular and history)

The operation is atomic - either all renames succeed or none do.

## Request body

- RenameFieldRequest
  - `project_name` string, required — Name of the project the field belongs to.
  - `context` string, nullable — The context of the field to rename.
  - `old_field_name` string, required — The current name of the field to rename.
  - `new_field_name` string, required — The new name for the field.

## Response `200`

Field renamed successfully

- unknown

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `422` — Validation Error

---

[API](https://skmtc.net/unify/apis/unifyai-http-api-reference.md) · [All operations](https://skmtc.net/unify/apis/unifyai-http-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/unify/unifyai-http-api-reference/revisions/900377f918b6/schema)
