Hi
We have a Netlify-Github-Gatsby build flow that we want to modify with an option to trigger a build with a PAYLOAD, and get back the deploy/build id in order to be able to cancel it afterwards.
We have explored:
-
Webhooks:
Triggers build
Exposes payload (process.env.INCOMING_HOOK_BODY)
Does not return a deploy id -
POST /api/v1/sites/site_id/builds
Triggers build
Returns a deploy id
Does not seem to accept a payload. -
POST /api/v1/sites/site_id/deploys
Triggers build
Stuck at “Branch Deploy [NEW]” - I can’t figure out how to target Production: master.
Any help is appreciated.