Redeploy a branch in a site with the latest git commit using Netlify API

I use Gridsome for Static Site Generation and I integrated Bitbucket with Netlify, so when I add a new commit it directly redeploys my site with the latest commit.
Sometimes I need to redeploy without any changes in the project files, just to get the latest changes in the Database.

I want to add a button to my site when click, it uses Netlify API for redeploying with the latest Git commit, How can I do that with Netlify API?

Hey @Mina_Nasser,

For branch deploys, you’d have to use the retry deploy endpoint for a previous deploy for that branch. Currently, there’s no way to trigger a build for a branch via the API.