{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Root or main admin marks a category complete (the guardian pressed complete) or back to in progress. A complete category stays complete after later edits; this is the only way to change it.",
      "errors": [
        {
          "name": "NotMember"
        },
        {
          "name": "NotAdmin"
        },
        {
          "name": "HomeNotFound"
        },
        {
          "name": "PdsUnavailable"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "category": {
              "ref": "ai.newnal.illi.mydata.defs#category",
              "type": "ref"
            },
            "homeId": {
              "format": "tid",
              "type": "string"
            },
            "slot": {
              "description": "The parent slot, 1 or 2.",
              "maximum": 2,
              "minimum": 1,
              "type": "integer"
            },
            "state": {
              "knownValues": [
                "complete",
                "inProgress"
              ],
              "type": "string"
            }
          },
          "required": [
            "homeId",
            "slot",
            "category",
            "state"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "category": {
              "ref": "ai.newnal.illi.mydata.defs#categoryView",
              "type": "ref"
            }
          },
          "required": [
            "category"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "ai.newnal.illi.mydata.setCategoryState",
  "lexicon": 1
}
