space.highport.admin.setQuota

Override one quota for one DID, or clear the override to restore the default. Lowering a count blocks new creations but removes nothing. A bandwidth change also applies to the current month.

Details · procedure
Kindprocedure
Authorityadmin.highport.space
Indexed
cid bafyreidhyqd4pzh4zh3vzf3nmxohmy4b7p5toemc4druqlpzadzru5vyu4

Checks

Valid
  • unlimited-string defs.main.input.schema.properties.quotaNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Override one quota for one DID, or clear the override to restore the default. Lowering a count blocks new creations but removes nothing. A bandwidth change also applies to the current month.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "did": {
              "format": "did",
              "type": "string"
            },
            "quota": {
              "knownValues": [
                "sites",
                "tiles",
                "tileBytes",
                "spaces",
                "maxBlobBytes",
                "monthlyBandwidthBytes"
              ],
              "type": "string"
            },
            "reason": {
              "description": "Why the override was set. Shown by getQuota.",
              "maxLength": 1000,
              "type": "string"
            },
            "value": {
              "description": "The new limit: a count for sites, tiles and spaces, or bytes for tileBytes, maxBlobBytes and monthlyBandwidthBytes. Absent clears the override.",
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "did",
            "quota"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "did": {
              "format": "did",
              "type": "string"
            },
            "quotas": {
              "items": {
                "ref": "space.highport.admin.getQuota#quotaView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "did",
            "quotas"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "space.highport.admin.setQuota",
  "lexicon": 1
}