tunahaviet
tunahaviet3mo ago

tunahaviet - Hi team, I am have trigger with ...

Hi team, I am have trigger with path sample: /api/v1/fid/:id How I can get :ID in return response I really need your help
Solution:
Hi @tunahaviet, Here's how you can set this up: In the REST API trigger configuration, you specify the Path and Method. For dynamic paths, you can use a named parameter by prefixing it with a colon. For instance: Path: /api/call/:id Method: GET (or POST, PUT, DELETE depending on your requirement) With the above configuration, if a request is made to a URL like https://my-project-id.buildship.run/api/call/:123, the workflow associated with this path will be triggered. The variable part, 123, is captured by :id. You can access this variable within your workflow using the request.pathobject....
No description
Jump to solution
1 Reply
Solution
Gaurav Chadha
Gaurav Chadha3mo ago
Hi @tunahaviet, Here's how you can set this up: In the REST API trigger configuration, you specify the Path and Method. For dynamic paths, you can use a named parameter by prefixing it with a colon. For instance: Path: /api/call/:id Method: GET (or POST, PUT, DELETE depending on your requirement) With the above configuration, if a request is made to a URL like https://my-project-id.buildship.run/api/call/:123, the workflow associated with this path will be triggered. The variable part, 123, is captured by :id. You can access this variable within your workflow using the request.pathobject.
No description