I rely on Postman for sending requests to a Kanban API, but the data varies each time.
For instance, the request body always includes an ID for the Kanban card to be placed on the board, {{External_Card_ID}}
, but it may not always include a plannedFinish or a title.
{
"customId": "{{External_Card_ID}}",
"title": "{{Title}}",
"plannedFinish": "{{Due_Date}}"
}
Can pre-request scripts in Postman be utilized to evaluate the CSV provided to the runner and generate a message like
requestBody = "{
"customId":"{{External_Card_ID}}""
}"
If csvInput contains "Title" column then
append ",title":"{{Title}}" to requestBody
Subsequently, the body can be set to {{requestBody}}
?