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

Semantic URL Example

jsgeronimo
New Contributor II

Hi,

I would like to know how to correctly pass data via Semantic URL (as a Triggered Task via URL)?

Here is what I did:

Edit Pipeline Properties:
26 pm

I created an exampleId variable, if I wanted to pass a value of 1 to the exampleId variable:

https://elastic.snaplogic.com:443/api/1/rest/path/to/my/project/pipelineName/exampleId/1

What I have working is:

https://elastic.snaplogic.com:443/api/1/rest/path/to/my/project/pipelineName/?exampleId=1

18 REPLIES 18

See here for accessing query parameters from when using ultra tasks:

Planning Ultra Tasks

The query field is added to the input document, which is different than in triggered tasks.

SpiroTaleski
Valued Contributor

@amar

In order to get query parameters for ultra task, you should to leave one unconnected input view of the ultra pipeline.

When you try to call that ultra pipeline(from REST client, REST Snaps etc), the query parameters is added to the input document:

Ex:

โ€œqueryโ€: {
โ€œtestParameter1โ€: [
โ€œTestValueโ€
],
โ€œtestParameter2โ€: [
โ€œTestValue2โ€
]
}

Regards,
Spiro Taleski

koryknick
Employee
Employee

Thanks @cjhoward18 and @Spiro_Taleski - I missed that @amar had said this was now an Ultra task; the original URL provided was a triggered task.

amar
New Contributor II

Thankyou all for the help!