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:
Jump to 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.path
object....
1 Reply
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.path
object.