Replacing the content of an image attachment using API

Replacing the content of an image attachment using API