Hippo supports renaming fields.
curl -u shiva:shiva -XPOST 'localhost:8902/hippo/v1/book/_rename_columns?database_name={database_name}&pretty' -H 'Content-Type: application/json' -d'{
"fields_renaming": [
{
"word_count" : "book_word_count"
},
{
"author" : "book_author"
}
]
}';
Result:
{
"acknowledged" : true
}
Parameter description:
Parameters | Description | Required |
---|---|---|
table_name | Table to rename fields | Yes |
database_name | Database where the table is located | No, defaults to "default" database |
fields_renaming | Set of fields to be renamed | Yes |