Didn’t work. So here’s where I’m at currently.
Communication (the mapping tab is the same)
{
"url": "https://api.dpdf.io/v1.0/dlex-layout",
"method": "POST",
"type": "multipart/form-data",
"headers": {
"Authorization": "Bearer {{parameters.apiKey}}"
},
"log": {
"sanitize": [ "request.headers.authorization" ]
},
"body": {
"DlexPath": "{{parameters.DlexPath}}",
"LayoutData": {
"value": "{{parameters.file_data}}",
"options": {
"filename": "{{parameters.file_name}}"
}
}
},
"response": {
"output": {
"type": "buffer"
}
}
}
When I run and view with the Make Flow Viewing tool for Chrome.
{
"user-agent": "Make/production",
"authorization": "***",
"content-type": "multipart/form-data"
}
and
{
"DlexPath": "samples/dlex-layout/SimpleReportWithCoverPage.dlex",
"LayoutData": {
"options": {
"filename": "SimpleReportWithCoverPage.json"
}
}
}
and in response body
{
"id": "8b2e78fa-fc05-49d9-beec-1971d65dfd5a",
"message": "'u' is an invalid start of a value. LineNumber: 0 | BytePositionInLine: 0."
}
and the raw request
[
{
"apiKey": "-- redacted --",
"DlexPath": "samples/dlex-layout/SimpleReportWithCoverPage.dlex",
"file_name": "SimpleReportWithCoverPage.json",
"LayoutData": "IMTBuffer(13934, binary, 2f823c8caaaba458108c953c18cdac392c0908c7): efbbbf7b0d0a2020225265706f727443726561746564466f72223a2022416c657820536d697468222c0d0a20202250726f6475637473223a205b0d0a202020207b0d0a2020202020202250726f647563744944223a2031372c0d0a202020202020225072"
}
]
and output bundle
[
null
]
So if anyone sees anything that strikes them would appreciate any help. I know the files are all valid, as I checked the call in postman. Sure seems sketchy considering this is such an easy thing to do…form post with a field and a file.