How to replace a file via API/Integrationtask?

How to replace a file via API/Integrationtask?

Hi, hope may you help me.

I want to know how can I replace a file that is part of a request via integration task or via API call.

The use case: I've created a request (identified with a request_id) with two pdf files (every one with a document_id), both of them to be signed in the same request. In this scenario and before sending to sign (the request is in "Draft"), I want to replace one of the files, let us say file1.pdf.

How can I do that, either via integration task or via API call?

Thanks in advance,


Eduardo Santander