# Trigger a specific commit via the Travis API

**URL:** https://travis-ci.community/t/trigger-a-specific-commit-via-the-travis-api/4718
**Category:** Travis CI Discussions & Feedback
**Tags:** trigger-custom-build
**Created:** [August 14, 2019, 10:09am UTC](https://travis-ci.community/t/trigger-a-specific-commit-via-the-travis-api/4718 "2019-08-14T10:09:06Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)
#### Post date: [August 14, 2019, 2:29pm UTC](https://travis-ci.community/t/trigger-a-specific-commit-via-the-travis-api/4718/2 "2019-08-14T14:29:35Z")

</div>

**Yes, it’s only possible to specify branch names (more specifically, valid remote refs).**

I’ve tried supplying a SHA-1 instead as `branch` and [a build was created](https://travis-ci.org/native-api/test_travis/jobs/571856078). But the supplied name is being passed to `git clone --branch` and the cloning thus failed.

**Nothing prevents you from creating a topic branch at any commit though.**

* * *

(See also [https://stackoverflow.com/questions/14370157/git-fetch-a-specific-commit-by-hash](https://stackoverflow.com/questions/14370157/git-fetch-a-specific-commit-by-hash) for what valid input is in Git terms.)

---

_[View the full topic](https://travis-ci.community/t/trigger-a-specific-commit-via-the-travis-api/4718)._
