I'm relatively new to using DocuSign and I'm trying to send emails using it.
I want to create and update envelopes in DocuSign using the Java SDK.
I'm able to create an envelope using templateId and now I want to replace one of the documents in the envelope using documentId.
I'm able to do it using the rest api as documented here. It says that the document body is sent as the request body. And the SDK method mentioned in the documentation for this is Envelopes::updateDocument
.
But when I tried using the SDK, updateDocument
takes only three parameters, the signature is
public void updateDocument(String accountId, String envelopeId, String documentId) throws ApiException {...}
So how do we pass the document body using the SDK in order to update a document in an envelope ?