Does Drone API supports POST to start a new build? There is no documentation available for this. However I am able to restart a build with API but looking to start a new build from API.
Technically this is possible by hitting
/hook endpoint, but you’d have to construct json hook payload.
Can you please provide me sample payload?
You can get a sample payload from the github webhook history.
- the webhook url, which includes a per-repository secret token
- the webhook payload (json format)
- the webhook headers (required)
Essentially you would be impersonating GitHub and sending a webhook to start a new build.