Skip to content

Instantly share code, notes, and snippets.

@JordanSchuetz
Last active June 8, 2021 17:54
Show Gist options
  • Save JordanSchuetz/b6d7818115dd3c0f76f169e9335002d8 to your computer and use it in GitHub Desktop.
Save JordanSchuetz/b6d7818115dd3c0f76f169e9335002d8 to your computer and use it in GitHub Desktop.
%dw 2.0
import dw::module::Multipart
output multipart/mixed boundary="-----az1by2cx34dw"
---
{
"parts": {
"file":{
"headers" : {
"Content-Type" : "text/xml",
"Content-Disposition" : {
"name": "request_payload",
}
},
content : {
tsRequest: {
datasource @(
name: "DataDEVDayDataSource"
): {
project @(
id: "09cdd759-2a6a-4733-8a10-XXXXXXX"
) : null
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment