dev.knotless.renameRepo

Moves the repository's dev.knotless.repo record to the new name, as `knotless repo rename` does, leaving a dev.knotless.redirect under the old one, so links and clones by it still lead there. Only its owner, logged in to this appview's web pages, can: the appview writes with the session it keeps for that account, which the pages' session cookie names.

Details · procedure
Kindprocedure
Authorityknotless.dev
Indexed

Procedure

procedure · POST

Input

application/json

name

requiredstring

Its new name.

  • maxLength: 100

repo

requiredstring · at-uri

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

Output

application/json

Errors

NotFound

No such repository.

InvalidRequest

The name is not one a repository can have, is the one it has, or another repository has it.

AuthenticationRequired

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

Forbidden

The account logged in is not the repository's owner.

Similar lexicons

semantic match

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

  • Renames a branch of a repository.

  • Forks a repository into the account logged in to this appview's pages.

  • Offers a repository to another account, or withdraws the offer.

  • Left under a repository's old name when it is renamed, so clone URLs, remotes and links that use the old name still reach it.

  • Changes what a repository says it is, the links its pages show, what it is about and the branch its HEAD names.