Skip to content

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

Open
@nevster

Description

@nevster

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."}'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions