How do you rename the machine name of a content type? I have this content-type that i created titled: &quot;Engineering&quot;.
1500 hundred nodes later management wants me to rename it : &quot;Staff&quot;. I can easily rename the label but how do i rename the machine name? Does anyone have any success renaming a content-type machine name that is loaded with content/revision and relationships?
It is sometimes impossible to predict these kind of changes. How do we rename the machine name a a content-type.
i have tried the instructions from this article below : https://medium.com/@philw_/how-to-change-a-content-type-s-machine-name-in-drupal-8-33fc3c0520dc with no success.

Error: bundle name cannot be changed.

I will be trying the following:
export the database out.
find and replace the old content-type machine name with the new name
I will also rename any tables named after the content type in the process
re-import the db
I will see how that works out.
I disagree with most of the comments above simply stating: don't change the bundle machine name. These don't answer the poster's question.
This was a simple task in Drupal 7; but due to the added complexities in Drupal 8 it was decided to attempt to remove this ability. See this issue for history:
#2172843 Remove ability to update entity bundle machine names.
That being said, if you do a database search/replace on the machine name this should do what you are looking for - BUT beware, some of those machine names are embedded in serialized data (e.g. key_value table) and you will need to modify the json string size if the machine name you are replacing is a different length than the new name.