How can i update existing block programatically. I am able to create a new block and added it to contentArea but if i want to update this block, how can i do that?
I have gone through this post for creating block:
You can use the IContentRepository to load the block using the content reference. See more information here in the persisting a content instance section:
the key method is CreateWritableClone()