Commit to bitbucket using api

Are there any bitbucket-server api’s available which I can use to commit a file to specific branch?

Bitbucket is not a file repository but version control system.

I know its a version control system.
But what if I have to checkin some template so that user can fill that out later, there can be n number of use cases.
Are you aware of any API’s?

Why don’t you just use git command?