Invoking an integration that contains an API Trigger

From @thenajjar

We are trying to integrate our backend with third party application, we are not sure how can we call the API_trigger? how can we link the API_trigger to a REST API endpoint. In the documentation it only explains how to test the API_trigger, but it does not explain how to edit the API_trigger to link it to an endpoint (so the API call will activate the trigger)

This API is used to execute an API Trigger. Here is an example

export region=integration-region
export name=integration-name
export auth="authorization: Bearer $(gcloud auth application-default print-access-token)"

curl -H $auth -H "Content-Type: application/json" https://$region-integrations.googleapis.com/v1/projects/$project/locations/$region/integrations/$name:execute -d '{"triggerId":"api_trigger/ADD-TRIGGER-NAME-HERE","inputParameters":{}}'

@Anonymous

There is a need to move triggerid/TriggerName into URL and keep -d only for inputs to the API.

Also it would be helpful to be able to generate a curl test command similar to above thru the “test” button itself for someone to run it remotely.

Thanks for the feedback!! We can look at these suggestions to help inform our V2 of the APIs. I also love the idea of generating the curl command from the TEST button.