dev.knotless.defineLabel
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Adds the label to the repository's dev.knotless.repo record, in place of any of its name, as `knotless labels add` does. 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 name is empty or too long, or the color is no hex color.",
"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": {
"color": {
"description": "A hex color, as #d73a4a.",
"maxLength": 7,
"type": "string"
},
"description": {
"description": "What the label means, for those who put it on.",
"maxGraphemes": 200,
"maxLength": 1000,
"type": "string"
},
"exclusive": {
"description": "Whether, of its scope's exclusive labels, it stands alone: setting one takes the others off.",
"type": "boolean"
},
"name": {
"description": "Up to its last `/`, if it has one, its scope, as kind/bug's is kind.",
"maxGraphemes": 50,
"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"
}
},
"description": "Defines a label pulls and issues of a repository may carry.",
"id": "dev.knotless.defineLabel",
"lexicon": 1
}
Metadata
- DID
-
did:plc:yqsg7znbbhfmj3a2nrpnaerk - CID
-
bafyreifvj5yjua54o55k6l6wmineoemu2viqkswyuelwf4242k4yvraune - Indexed At
- 2026-10-28 21:21 UTC
- AT-URI
-
at://did:plc:yqsg7znbbhfmj3a2nrpnaerk/com.atproto.lexicon.schema/dev.knotless.defineLabel
Referenced Schemas (1)
Similar Lexicons
Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
dev.knotless.labelItem procedure
Puts a label on a pull or an issue, or takes it off, as the account logged in to this appview's pages.
-
dev.knotless.removeLabel procedure
Takes a label away from a repository.
-
dev.knotless.label record
The labels one account puts on a pull or issue, from those its repository defines.