Branches
Delete a branch
Soft-deletes a branch so it stops appearing in branch lists, letting callers clean up failed or abandoned branches instead of leaving permanent cruft. Refuses with 400 for the synthetic master branch or a malformed id, 404 when the branch does not exist in this project, 403 when the branch is protected, and 400 when it still has sub-branches.
POST
Delete a branch
Authorizations
Headers
Workspace identifier
Path Parameters
Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.
Response
200 - application/json
The response is of type string.