tools.ozone.setting.upsertOption
Create or update setting option
Details · procedure
| Kind | procedure |
|---|---|
| Authority | setting.ozone.tools |
| Indexed |
Checks
Validunlimited-stringdefs.main.input.schema.properties.managerRoleNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.input.schema.properties.scopeNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Create or update setting option",
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"description": {
"maxLength": 2000,
"type": "string"
},
"key": {
"format": "nsid",
"type": "string"
},
"managerRole": {
"knownValues": [
"tools.ozone.team.defs#roleModerator",
"tools.ozone.team.defs#roleTriage",
"tools.ozone.team.defs#roleVerifier",
"tools.ozone.team.defs#roleAdmin"
],
"type": "string"
},
"scope": {
"knownValues": [
"instance",
"personal"
],
"type": "string"
},
"value": {
"type": "unknown"
}
},
"required": [
"key",
"scope",
"value"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"option": {
"ref": "tools.ozone.setting.defs#option",
"type": "ref"
}
},
"required": [
"option"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "tools.ozone.setting.upsertOption",
"lexicon": 1
}