Skip to Content
Xeonr Developer Docs
API SpecificationUpdater

Delete a branch

POST
/xeonr.updater.v1.UpdaterService/DeleteBranch

Removes an empty branch from the app. A branch that still has releases or targets is refused with FAILED_PRECONDITION: delete them first. An unknown branch is NOT_FOUND.

The caller needs write access to the app's bucket (a signed-in person's token carrying upl:uploads:manage); a read-only token gets PERMISSION_DENIED, and so does an API key.

Header Parameters

Connect-Protocol-Version*number

Define the version of the Connect protocol

Value in1
Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

bucketId?string
Length1 <= length
branchId?string
Length1 <= length
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://updater.xeonr.io/xeonr.updater.v1.UpdaterService/DeleteBranch" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{}