hook entity rename code to API PATCH
Merge pull request #645 from flapjack/628_api_entity_rename

hook entity rename code to API PATCH