Replace file with new uploaded file?

Hello,

is it possible to replace/overwrite an already uploaded file with a new file? I’m using the REST API. The files would have the same name so Im looking for the functionality of files with the same name are replaced.

Would I have to upload the new one and delete the old one in two steps?
This would result in a new url to access the file which is not what I need. I need the URL to access to be the same.

Thank you.

Hi @safinn!

By design, files are immutable. That means you can’t replace an existing file with new one. You can remove a file but you can’t “reserve” its UUID. For each uploaded file new UUID and CDN URL will be generated.