Added possibility to update contact by a resource