add new put api for entity