dev.knotless.archiveRepo

Sets or drops `archivedAt` on the repository's dev.knotless.repo record, as `knotless repo archive` does. While it is archived, pushes and commits to it are refused, and so is anything more said about it, and runners leave it. Its owner can, logged in to this appview's web pages: the appview writes with the session it keeps for that account, which the pages' session cookie names. For an organization's repository, so can an admin who joined it, logged in to the pages or with a service token from their own PDS for this method: the appview's gateway, which the organization delegated its writes to, writes as the organization.

Details · procedure
Kindprocedure
Authorityknotless.dev
Indexed

Procedure

procedure · POST

Input

application/json

repo

requiredstring · at-uri

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

unarchive

boolean

True to unarchive it, making it writable again. Absent is false.

Output

application/json

archivedAt

string · datetime

When it was archived; absent once unarchived.

Errors

NotFound

No such repository.

InvalidRequest

It is already archived, or already not.

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.