Use API to replicate "git commit --allow-empty"

Hi there, was wondering if there was a way to use the Github API to replicate:
git commit --allow-empty -m "Trigger build"