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!