Skip to content

Close a branch

POST
/api/orgs/{org}/projects/{project}/branches/close
curl --request POST \
--url https://api.wrktr.com/api/orgs/example/projects/example/branches/close \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "branch": "example" }'

Sets the branch aside without landing it: it leaves the branches in progress, its agents and checks stop, and Land refuses it. Its ref, history, description, reviews and threads stay; reopen it to carry on.

org
required
string
project
required
string
Media typeapplication/json
object
branch
required
string
Examplegenerated
{
"branch": "example"
}

Success

Media typeapplication/json
object
ok
required
boolean
Examplegenerated
{
"ok": true
}

Unauthorized

Media typeapplication/json
object
_tag
required
string
Allowed values: Unauthorized
message
required
string
Example
{
"_tag": "Unauthorized"
}

ProjectNotFound | BranchNotFound

Media typeapplication/json
Any of:
object
_tag
required
string
Allowed values: ProjectNotFound
project
required
string
Example
{
"_tag": "ProjectNotFound"
}

InvalidInput

Media typeapplication/json
object
_tag
required
string
Allowed values: InvalidInput
message
required
string
Example
{
"_tag": "InvalidInput"
}