Authorizations: oauth2_implicit (repo:admin)
Type | Name | Description | Schema |
---|---|---|---|
path |
trigger_uuid |
The UUID of the build trigger |
string |
path |
repository |
The full path of the repository. e.g. namespace/name |
string |
Optional run parameters for activating the build trigger
Name | Description | Schema |
---|---|---|
branch_name |
(SCM only) If specified, the name of the branch to build. |
string |
commit_sha |
(Custom Only) If specified, the ref/SHA1 used to checkout a git repository. |
string |
refs |
(SCM Only) If specified, the ref to build. |
HTTP Code | Description | Schema |
---|---|---|
201 |
Successful creation |
|
400 |
Bad Request |
|
401 |
Session required |
|
403 |
Unauthorized access |
|
404 |
Not found |
$ curl -X POST "https://quay-server.example.com/api/v1/repository/example_namespace/example_repo/trigger/example-trigger-uuid/start" \
-H "Authorization: Bearer <your_access_token>" \
-H "Content-Type: application/json" \
-d '{
"branch_name": "main",
"commit_sha": "abcdef1234567890",
"refs": "refs/heads/main"
}'