dev.knotless.createTheme
Writes a dev.knotless.theme record in the account logged in to this appview's web pages, for anyone to choose. Requires the session cookie the pages' login sets: the appview writes with the session it keeps for that account. Clients holding their own session write the record themselves.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | knotless.dev |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Writes a dev.knotless.theme record in the account logged in to this appview's web pages, for anyone to choose. Requires the session cookie the pages' login sets: the appview writes with the session it keeps for that account. Clients holding their own session write the record themselves.",
"errors": [
{
"description": "A name empty or too long, or a colour not as #rrggbb.",
"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": "What the theme is called.",
"maxGraphemes": 64,
"maxLength": 640,
"type": "string"
},
"palette": {
"ref": "dev.knotless.theme#palette",
"type": "ref"
}
},
"required": [
"name",
"palette"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"ref": "dev.knotless.defs#themeView",
"type": "ref"
}
},
"type": "procedure"
}
},
"description": "Publishes a theme as the account logged in to this appview's pages.",
"id": "dev.knotless.createTheme",
"lexicon": 1
}