Question

Happy Friday team! How do I call a specific inbound request transformer on a BC API call? I thi...

  • 14 August 2020
  • 8 replies
  • 10 views

Badge +1

Happy Friday team! How do I call a specific inbound request transformer on a BC API call? I think I saw documentation on this a while back but it’s not in my notes



🗨 Link to Slack thread

8 replies

Badge +1

I’m calling a specific action in BC from an external tool and I want to run an inbound request transformer on the request first

Badge +1

Hey Gillen, first you’ll grab your Inbound Request Transformer ID from the Extensions Tab in the integration:

Badge +1

https://screenshots.bettercloud.com/xQuLAb8L

Badge +1

Then the url that you’ll send to the BetterCloud API will look something like:

https://api.bettercloud.com/api/v1/actions/{actionId}/execute?BC-Transform-IDs={scriptId}

Badge +1

Ah perfect! Thanks for that @justin.little. Is there a similar syntax for pre-request scripts?

Badge +1

No problem! The same can actually be done for Pre-Request Scripts. 🙂 Also, if you don’t have the option to pass an additional Authorization header from wherever the webhook is being triggered, you can append &authorization={bettercloudApiKey} to the url as well.

Badge +1

Oh nice workaround there. Thanks for the info! Have a great weekend ☀

Badge +1

You too!!

Reply