Merge Queue API
Public Trunk Merge Queue API. All requests should be authenticated.
The Trunk Merge Queue API provides access to submit PRs for testing and merging, canceling PRs, and providing extra information to optimize the queue. The API is an HTTP REST API, returns JSON from all requests, and uses standard HTTP response codes.
All requests must be authenticated by providing the x-api-token header.
Trunk API token - see https://docs.trunk.io/apis#authentication
The branch the merge queue will be merging PRs into
mainThe priority name to assign to the PR when it begins testing in the queue
mediumExample: highPossible values: The priority number (0 - 255, 0 is the highest) to assign to the PR when it begins testing in the queue
1OK
No content
Unauthorized
No content
Trunk API token - see https://docs.trunk.io/apis#authentication
The branch the merge queue will be merging PRs into
mainThe priority name to assign to the PR when it begins testing in the queue
mediumExample: highPossible values: The priority number (0 - 255, 0 is the highest) to assign to the PR when it begins testing in the queue
1Information on the pull request
Unauthorized
Pull request with the provided number does not exist or has never been submitted to the specified queue before
Restarts tests on a PR in the queue without moving its position or causing other PRs to be retested
Trunk API token - see https://docs.trunk.io/apis#authentication
The branch the merge queue will be merging PRs into
mainOK
No content
Unauthorized
No content
Trunk API token - see https://docs.trunk.io/apis#authentication
The branch the merge queue will be merging PRs into
mainOK
No content
Unauthorized
No content
Trunk API token - see https://docs.trunk.io/apis#authentication
The branch the merge queue will be merging PRs into
mainInformation on the pull request
Unauthorized
Pull request with the provided number does not exist or has never been submitted to the specified queue before
Upload impacted targets for the PR and its current SHA. Used specifically when running the queue in Parallel mode
Trunk API token - see https://docs.trunk.io/apis#authentication
The branch the merge queue will be merging PRs into
mainName of the target impacted by the changes in the pull request
services_backendSpecial value to indicate that all targets are impacted by the changes in the pull request
OK
No content
Unauthorized
No content
OK
Bad Request
Unauthorized
Not Found
Internal Server Error
No content
Last updated

