Rename Field

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:

ParametersDescriptionRequired
table_nameTable to rename fieldsYes
database_nameDatabase where the table is locatedNo, defaults to "default" database
fields_renamingSet of fields to be renamedYes
Table 5 Rename Field (Restful API)