tools.ozone.setting.upsertOption

Create or update setting option

Details · procedure
Kindprocedure
Authoritysetting.ozone.tools
Indexed
cid bafyreidlcqfg63kl2f2edxtbs75y2ab5embfw5i3noburzdu5vbmb3mwmm

Checks

Valid
  • unlimited-string defs.main.input.schema.properties.managerRoleNo maxLength, maxGraphemes or format limits this string.
  • unlimited-string defs.main.input.schema.properties.scopeNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$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
}