Copies a repository, every branch and tag, into a new dev.knotless.repo in the account logged in to this appview's web pages, naming it as forked from the first, as `knotless fork` does. Requires the session cookie the pages' login sets: the appview writes with the session it keeps for that account.
Input
application/jsonname
string
Optional
The fork's name: the repository's own when absent.
maxLength: 100 bytesrepo
stringat-uri
Required
The repository to fork: its dev.knotless.repo record, as dev.knotless.getRepo takes it.
Output
application/jsonErrors
NotFound
No such repository. InvalidRequest
The account owns the repository, has a repository by that name already, or the name is not one a repository can have. AuthenticationRequired
No account is logged in to the pages, or its session has ended. Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"description": "Copies a repository, every branch and tag, into a new dev.knotless.repo in the account logged in to this appview's web pages, naming it as forked from the first, as `knotless fork` does. Requires the session cookie the pages' login sets: the appview writes with the session it keeps for that account.",
"errors": [
{
"description": "No such repository.",
"name": "NotFound"
},
{
"description": "The account owns the repository, has a repository by that name already, or the name is not one a repository can have.",
"name": "InvalidRequest"
},
{
"description": "No account is logged in to the pages, or its session has ended.",
"name": "AuthenticationRequired"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"name": {
"description": "The fork's name: the repository's own when absent.",
"maxLength": 100,
"type": "string"
},
"repo": {
"description": "The repository to fork: its dev.knotless.repo record, as dev.knotless.getRepo takes it.",
"format": "at-uri",
"type": "string"
}
},
"required": [
"repo"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"ref": "dev.knotless.defs#repoMade",
"type": "ref"
}
},
"type": "procedure"
}