postman-collections icon indicating copy to clipboard operation
postman-collections copied to clipboard

Endpoint to update resource xml file does not work

Open bpoore opened this issue 5 years ago • 1 comments

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 avatar Apr 09 '21 19:04 bpoore

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.

bpoore avatar Jun 09 '21 20:06 bpoore