curl --request POST \
--url 'https://api.unify.ai/v0/logs/rename_field' \
--header "Authorization: Bearer $UNIFY_KEY" \
--header 'Content-Type: application/json' \
--data '{
"project": "eval-project",
"context": "test-context",
"old_field_name": "score",
"new_field_name": "score_new"
}'
{
"info": "Field renamed successfully from 'old_name' to 'new_name'"
}
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.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Name of the project the field belongs to.
The context of the field to rename.
The current name of the field to rename.
The new name for the field.
curl --request POST \
--url 'https://api.unify.ai/v0/logs/rename_field' \
--header "Authorization: Bearer $UNIFY_KEY" \
--header 'Content-Type: application/json' \
--data '{
"project": "eval-project",
"context": "test-context",
"old_field_name": "score",
"new_field_name": "score_new"
}'
{
"info": "Field renamed successfully from 'old_name' to 'new_name'"
}