Create entity

Creates or updates an identity entity.