Is there any way to change the URL handle of a media file from the API?

In the Shopify web interface we can change the URL handle of uploaded images. Is there any way to do this from the API?

It varies. I would like to use the API to change them programmatically. So, 1 to n images. Can you tell me how to do it?