hub schema rename entityType

Rename an entity type.

Use the hub schema rename entityType command to rename a Data Hub model entity type.

Usage

hub schema rename entityType --m model --e entityType --ne newEntityType --w waitForComplete
RequiredArgumentDescription
Yes--m modelSpecifies the name of the model whose entity type you want to rename.
Yes--e entityTypeSpecifies the type of entity to be renamed.
Yes--ne newEntityTypeSpecifies the new entity type.
No--w waitForCompleteSpecifies to wait for jobs to complete in a synchronous mode. This allows you to write a script that involves multiple schema changes to run consecutively.

Example

This example renames an entity type from Employee to Staff in a model called PersonalLending.

hub schema rename entityType --m PersonalLending --e Employee --ne Staff