POST API to start a new build

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.

  1. the webhook url, which includes a per-repository secret token
  2. the webhook payload (json format)
  3. the webhook headers (required)

Essentially you would be impersonating GitHub and sending a webhook to start a new build.