Fails with 409 when a change touches a path that moved since `base`, or when the branch kept moving under the batch.
Input
application/jsonauthor
ref#author
Optional
No description available.
base
string
Optional
The hex object ID of the commit the changes were made against. Without it the changes apply to whatever the branch holds.
maxLength: 64 bytesminLength: 40 bytesbranch
string
Required
Without refs/heads/. Created when absent, from `base`, or else from the default branch's tip.
maxLength: 255 byteschanges
array
Required
No description available.
message
string
Required
No description available.
maxLength: 20000 bytesname
string
Required
The repository's name: its dev.knotless.repo record key.
maxLength: 100 bytesrepo
stringdid
Required
The repository's owner.
Output
application/jsonbatched
integer
Required
How many commits went out in the write that carried this one.
changed
boolean
Required
False when the changes left the tree as it was, and no commit was made.
parent
string
Optional
The hex object ID the commit was built on; absent for a branch's first commit.
sha
string
Required
The hex object ID of the commit, or of the branch tip when nothing changed.
Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"description": "Fails with 409 when a change touches a path that moved since `base`, or when the branch kept moving under the batch.",
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"author": {
"ref": "#author",
"type": "ref"
},
"base": {
"description": "The hex object ID of the commit the changes were made against. Without it the changes apply to whatever the branch holds.",
"maxLength": 64,
"minLength": 40,
"type": "string"
},
"branch": {
"description": "Without refs/heads/. Created when absent, from `base`, or else from the default branch's tip.",
"maxLength": 255,
"type": "string"
},
"changes": {
"items": {
"ref": "#change",
"type": "ref"
},
"type": "array"
},
"message": {
"maxLength": 20000,
"type": "string"
},
"name": {
"description": "The repository's name: its dev.knotless.repo record key.",
"maxLength": 100,
"type": "string"
},
"repo": {
"description": "The repository's owner.",
"format": "did",
"type": "string"
}
},
"required": [
"repo",
"name",
"branch",
"message",
"changes"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"batched": {
"description": "How many commits went out in the write that carried this one.",
"minimum": 0,
"type": "integer"
},
"changed": {
"description": "False when the changes left the tree as it was, and no commit was made.",
"type": "boolean"
},
"parent": {
"description": "The hex object ID the commit was built on; absent for a branch's first commit.",
"maxLength": 64,
"minLength": 40,
"type": "string"
},
"sha": {
"description": "The hex object ID of the commit, or of the branch tip when nothing changed.",
"maxLength": 64,
"minLength": 40,
"type": "string"
}
},
"required": [
"sha",
"changed",
"batched"
],
"type": "object"
}
},
"type": "procedure"
}