Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Envelopes API - updateDocument does not have any way to pass the body of the new document #213

Open
nevster opened this issue Oct 25, 2021 · 1 comment

Comments

@nevster
Copy link

nevster commented Oct 25, 2021

public EnvelopeDocument updateDocument(String accountId, String envelopeId, String documentId) throws ApiException {

According to the rest api, the bytes should be submitted as the body of the PUT: https://developers.docusign.com/docs/esign-rest-api/reference/envelopes/envelopeattachments/create/

Looking at the code, there's no way to pass the bytes in the method parameters and it's just set to "{}".
So when you call it, you get the error:
Error while requesting server, received a non successful HTTP code 400 with response Body: '{"errorCode":"FORMAT_CONVERSION_ERROR","message":"The data could not be converted. The document is empty."}'

@LarryKlugerDS
Copy link
Contributor

Thank you for the bug report. I've filed internal bug DCM-6703. Please ask your DocuSign support contact to add your company's information to the bug report. I don't have a schedule for a fix. In the meantime, as a workaround, you may wish to call the API directly for this API method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants