dev.knotless.createBranch

lexicons.knotless.dev

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Points a new branch at a commit or branch, the default branch when none is named, as `knotless branch` 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.",
      "errors": [
        {
          "description": "No such repository.",
          "name": "NotFound"
        },
        {
          "description": "The branch exists already, there is no such commit or branch to start at, or the gateway refused it.",
          "name": "InvalidRequest"
        },
        {
          "description": "No account is logged in to the pages, or its session has ended.",
          "name": "AuthenticationRequired"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "from": {
              "description": "The commit, by hex, or branch it starts at: the default branch when absent.",
              "maxLength": 255,
              "type": "string"
            },
            "name": {
              "description": "The branch, without refs/heads/.",
              "maxLength": 255,
              "type": "string"
            },
            "repo": {
              "description": "The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it.",
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "repo",
            "name"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "name": {
              "description": "The branch, without refs/heads/.",
              "type": "string"
            },
            "sha": {
              "description": "The commit it points at, in hex, once made.",
              "type": "string"
            }
          },
          "required": [
            "name"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Creates a branch of a repository.",
  "id": "dev.knotless.createBranch",
  "lexicon": 1
}

Validate Record

Validate a record against dev.knotless.createBranch

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:yqsg7znbbhfmj3a2nrpnaerk
CID
bafyreid666rxdz3f7shjbvyjcl4nhsx7eue3sa34ysstad3zk23surc2qa
Indexed At
2026-10-28 21:21 UTC
AT-URI
at://did:plc:yqsg7znbbhfmj3a2nrpnaerk/com.atproto.lexicon.schema/dev.knotless.createBranch

Similar Lexicons

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

  • Deletes a branch of a repository.

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

  • Renames a branch of a repository.

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

  • Commits file changes to a branch through a gateway its owner has delegated writes to, without a clone. Commits to one branch that arrive together are built into one chain and written as one ref update. Requires a servic…

Lexicon Garden

@