def overwrite(self, url=None, filepath=None, params=None):
if params:<EOL><INDENT>OVERWRITE_SCHEMA.check(params)<EOL><DEDENT>data, files = None, None<EOL>if url:<EOL><INDENT>data = {'<STR_LIT:url>': url}<EOL><DEDENT>elif filepath:<EOL><INDENT>filename = os.path.basename(filepath)<EOL>mimetype = mimetypes.guess_type(filepath)[<NUM_LIT:0>]<EOL>files = {'<STR_LIT>': (filename, open(filepath, '<STR_LIT:rb>'), mimetype)}<EOL><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>return utils.make_call(API_URL, '<STR_LIT>',<EOL>path=FILE_PATH,<EOL>params=params,<EOL>handle=self.handle,<EOL>data=data,<EOL>files=files,<EOL>security=self.security,<EOL>transform_url=self.url if isinstance(self, filestack.models.Transform) else None)<EOL>
You may overwrite any Filelink by supplying a new file. The Filehandle will remain the same.

*returns* [requests.response]

```python
from filestack import Client, security

# a policy requires at least an expiry
policy = {'expiry': 56589012}
sec = security(policy, 'APP_SECRET')

client =  Client('API_KEY', security=sec)
```