v1

latestOpenAPI 3.1.02026-07-13154170539.0 KB
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.

patch/v0/logs/rename_field

Request body

project_namestring required

Name of the project the field belongs to.

contextstring nullable

The context of the field to rename.

old_field_namestring required

The current name of the field to rename.

new_field_namestring required

The new name for the field.

Example request

{
  "project_name": "eval-project",
  "context": "test-context",
  "old_field_name": "score",
  "new_field_name": "score_new"
}

Response

Field renamed successfully

{"stackTrail":"paths:/v0/logs/rename_field:patch:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}