Get a branch's state
GET
/api/orgs/{org}/projects/{project}/branches/state
const url = 'https://api-dev.wrktr.com/api/orgs/example/projects/example/branches/state?branch=example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api-dev.wrktr.com/api/orgs/example/projects/example/branches/state?branch=example' \ --header 'Authorization: Bearer <token>'Whether it’s an experiment or set to land when ready, other branches changing the same files, and its landing once it has landed.
Authorizations
Section titled “Authorizations”- bearer
- None
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
string
project
required
string
Query Parameters
Section titled “Query Parameters”branch
required
string
Responses
Section titled “Responses”BranchState
Media typeapplication/json
object
branch
required
string
experiment
required
boolean
autoLand
required
overlaps
required
Array<object>
object
branch
required
string
paths
required
Array<string>
Example
{ "autoLand": { "since": "Infinity" }, "landing": { "landedAt": "Infinity" }}Unauthorized
Media typeapplication/json
object
_tag
required
string
message
required
string
Example
{ "_tag": "Unauthorized"}ProjectNotFound | BranchNotFound