org.tangled.git.setDefaultBranch

tangled.org

Documentation

Set the default branch of this repository

main procedure

Set the default branch of this repository

Input

Encodingapplication/json
branch string Required

Branch name without the refs/heads/ prefix

maxLength: 244 bytes
repo stringdid Required

DID of the repository

Output

Encodingapplication/json
cid stringcid Required

Version of the refs record after the move

uri stringat-uri Required

The repository's org.tangled.git.refs record

Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://bsky.social)
Enter valid JSON for the request body
View raw schema
{
  "description": "Set the default branch of this repository",
  "input": {
    "encoding": "application/json",
    "schema": {
      "properties": {
        "branch": {
          "description": "Branch name without the refs/heads/ prefix",
          "maxLength": 244,
          "type": "string"
        },
        "repo": {
          "description": "DID of the repository",
          "format": "did",
          "type": "string"
        }
      },
      "required": [
        "repo",
        "branch"
      ],
      "type": "object"
    }
  },
  "output": {
    "encoding": "application/json",
    "schema": {
      "properties": {
        "cid": {
          "description": "Version of the refs record after the move",
          "format": "cid",
          "type": "string"
        },
        "uri": {
          "description": "The repository's org.tangled.git.refs record",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "cid"
      ],
      "type": "object"
    }
  },
  "type": "procedure"
}

Lexicon Garden

@