Set the default branch of this repository
Input
Encoding
application/jsonbranch
string
Required
Branch name without the refs/heads/ prefix
maxLength: 244 bytesrepo
stringdid
Required
DID of the repository
Output
Encoding
application/jsoncid
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.
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"
}