BuildShipBBuildShip
Powered by
tunahavietT
BuildShip•2y ago•
1 reply
tunahaviet

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
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
123
, is captured by :id.

You can access this variable within your workflow using the
request.path
request.path
object.
image.png
Jump to solution
BuildShip banner
BuildShipJoin
Join founders, builders, devs using Low-code / No-code to create backend, APIs, scheduled Jobs, automation, AI workflows
7,971Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

dmt - Hi Rowy Team, I am building Low Code back...
dmtDdmt / 💬・general
2y ago
Turlutte - Hi Team, I am trying to build a chat...
TurlutteTTurlutte / 💬・general
2y ago
jeff_sss - Hi team, I have upgraded to V2, howe...
jeff_sssJjeff_sss / 💬・general
16mo ago
Grant - Hi Rowy Team, I am trying to add the Fi...
GrantGGrant / 💬・general
2y ago