cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Pass triggered task parameters using JSON payload using RESTful POST

dwhansen-cbg
Contributor

I have a triggered task that is set up to accept around 10 parameters as well as a bearer token to kick off a pipeline. I know that I can pass parameters into a triggered task API call via the URI (i.e. ?param1=value1$param2=value2) using a RESTful GET. This is less than ideal and I donโ€™t like the idea of the parameters being in the URI.

Is it possible to pass parameters into a triggered task via a JSON payload using RESTful POST?

To clarify, I have tried it and the pipeline kicks off but with empty parameters so it ends up failing.

5 REPLIES 5

Not from SnapLogicโ€™s point of view. Iโ€™d say itโ€™s more of a API design choice. I guess one difference is that the JCC will log the URI (jcc_access.log), so if there were parameters you didnโ€™t want logged out, itโ€™d be better to use a header. Otherwise, I think itโ€™s a matter of taste.