Get Involved. Join the Conversation.


    Jaeyshree Kumaran
    How to run a integration by clicking a single url/link
    Topic posted October 18, 2019 by Jaeyshree KumaranRed Ribbon: 250+ Points, last edited October 18, 2019, tagged Adapters, API, Connection, Integration, Mapping, Orchestration, PaaS, REST, Web Services, xml 
    70 Views, 5 Comments
    How to run a integration by clicking a single url/link

    Requirement: I want to send the url of integration in a mail notification. On click of that url, the integration should be triggered in OIC.

    I initially used the link (as in image) but it can be done by using rest client or postman tools only. I need a way that is independent of the tools.

    I referred the below documentation, and found it cannot be done without support of rest client or postman tools as it is a POST request

    Also, I found starting an integration is a POST request. hitting a url from browser is GET request.

    Kindly suggest a way to trigger the integration by clicking a single url.




    Version: (190924.1600.31522)



    • Hemanth Lakkaraju

      What exactly is your usecase? All OIC endpoints are protected and there is no way you can do this without providing credentials to the request.

      • Jaeyshree Kumaran

        I will send a mail if my integration fails. In that mail, I should include a url and on clicking the url, the url will be hit via browser and the integration should get triggered in OIC.

        I used https://<host>:<port>/ic/api/integration/v1/integrations/{integration_id}/schedule/jobs. But no luck

        • Hemanth Lakkaraju

          It is not clear on your requirement yet! The endpoint you are showing here is ONLY of a Scheduled Integration. Do you want this only for a particular scheduled integration? If yes, why do you want to trigger this from a link from email in case of a failure?

          If you can explain what exactly your use case and why do you need to do this - we can look at alternatives.

          For sure, your ask of executing an integration from a click of link is NOT POSSIBLE since as I said above all OIC endpoints are protected and without valid credentials you CANNOT execute.

    • Abhinav Kumar

      I think it is not possible for the POST methods. It is only possible for the GET method.