dev.knotless.archiveRepo

Sets or drops `archivedAt` on the repository's dev.knotless.repo record, as `knotless 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

Showing version bafyreiagpsk7u7wfdrkfnwsq3gfpbvxfxq56d25hj5cewmekwseoyyrxvu. Show the latest

cid bafyreiagpsk7u7wfdrkfnwsq3gfpbvxfxq56d25hj5cewmekwseoyyrxvu

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Sets or drops `archivedAt` on the repository's dev.knotless.repo record, as `knotless 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.",
      "errors": [
        {
          "description": "No such repository.",
          "name": "NotFound"
        },
        {
          "description": "It is already archived, or already not.",
          "name": "InvalidRequest"
        },
        {
          "description": "No account is logged in to the pages, or its session has ended.",
          "name": "AuthenticationRequired"
        },
        {
          "description": "The account logged in is not the repository's owner.",
          "name": "Forbidden"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "repo": {
              "description": "The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it.",
              "format": "at-uri",
              "type": "string"
            },
            "unarchive": {
              "description": "True to unarchive it, making it writable again. Absent is false.",
              "type": "boolean"
            }
          },
          "required": [
            "repo"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "archivedAt": {
              "description": "When it was archived; absent once unarchived.",
              "format": "datetime",
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Archives a repository, making it read only, or unarchives it.",
  "id": "dev.knotless.archiveRepo",
  "lexicon": 1
}