Takes the label out of the repository's dev.knotless.repo record, as `knotless labels remove` does: it comes off every pull and issue it was on, and back on them if it is defined again. Only its owner, logged in to this appview's web pages, can: the appview writes with the session it keeps for that account, which the pages' session cookie names.
Input
application/jsonname
string
Required
The label's name.
maxLength: 100 bytesrepo
stringat-uri
Required
The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it.
Output
application/jsonlabels
array
Required
The labels it defines now.
Errors
NotFound
No such repository. InvalidRequest
The repository defines no label by that name. AuthenticationRequired
No account is logged in to the pages, or its session has ended. Forbidden
The account logged in is not the repository's owner. Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"description": "Takes the label out of the repository's dev.knotless.repo record, as `knotless labels remove` does: it comes off every pull and issue it was on, and back on them if it is defined again. Only its owner, logged in to this appview's web pages, can: the appview writes with the session it keeps for that account, which the pages' session cookie names.",
"errors": [
{
"description": "No such repository.",
"name": "NotFound"
},
{
"description": "The repository defines no label by that name.",
"name": "InvalidRequest"
},
{
"description": "No account is logged in to the pages, or its session has ended.",
"name": "AuthenticationRequired"
},
{
"description": "The account logged in is not the repository's owner.",
"name": "Forbidden"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"name": {
"description": "The label's name.",
"maxLength": 100,
"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": {
"labels": {
"description": "The labels it defines now.",
"items": {
"ref": "dev.knotless.repo#label",
"type": "ref"
},
"type": "array"
}
},
"required": [
"labels"
],
"type": "object"
}
},
"type": "procedure"
}