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

Endpoint to update resource xml file does not work #30

Open
bpoore opened this issue Apr 9, 2021 · 1 comment
Open

Endpoint to update resource xml file does not work #30

bpoore opened this issue Apr 9, 2021 · 1 comment

Comments

@bpoore
Copy link

bpoore commented Apr 9, 2021

From this collection, I am unable to use the method to update a resource XML file:

{{baseUrl}}/v2.1/accounts/{{accountId}}/brands/{{brandId}}/resources/{{resourceContentType}}
When initially trying to use the endpoint, I get the following error:

{"errorCode":"INVALID_REQUEST_PARAMETER","message":"The request contained at least one invalid parameter. A filename was not found in the Content-Disposition header ('filename=\"filename.ext\""}
The docs do mention the need to include a Content-Disposition header, though upon adding: Content-Disposition: form-data; name="file"; filename="DocuSign_SigningResource.xml", I get the error:

{"errorCode":"BRAND_RESOURCES_XML_LOAD_OR_PARSE_ERROR","message":"XML syntax error. Data at the root level is invalid. Line 1, position 1."}
I have confirmed my XML is valid. I get this same error if I try to include a file that does not exist, so I am not confident the contents of the XML file have anything to do with the error I am receiving.

@bpoore
Copy link
Author

bpoore commented Jun 9, 2021

Update: I was able to get the endpoint to work by updating the request body from this:
Screen Shot 2021-06-09 at 1 13 42 PM
to raw xml and pasting the xml directly into the request body.

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

No branches or pull requests

1 participant