dev.knotless.deleteBranch

Deletes a branch, never the default one, as `knotless branch delete` does. As the account logged in to this appview's web pages: directly for the owner, through the repository's gateway for a collaborator, which refuses anyone else.

Details · procedure
Kindprocedure
Authorityknotless.dev
Indexed

Procedure

procedure · POST

Input

application/json

name

requiredstring

The branch, without refs/heads/.

  • maxLength: 255

repo

requiredstring · at-uri

The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it.

Output

application/json

name

requiredstring

The branch, without refs/heads/.

sha

string

The commit it points at, in hex, once made.

Errors

NotFound

No such repository.

InvalidRequest

There is no such branch, it is the default branch, or the gateway refused it.

AuthenticationRequired

No account is logged in to the pages, or its session has ended.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.