# space.highport.admin.setQuota

> Published by [lexicons.highport.space](https://lexicon.garden/identity/did:plc:ciygg5hma4q7ah2kxaszkyob)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:ciygg5hma4q7ah2kxaszkyob/space.highport.admin.setQuota)
- [Documentation](https://lexicon.garden/lexicon/did:plc:ciygg5hma4q7ah2kxaszkyob/space.highport.admin.setQuota/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:ciygg5hma4q7ah2kxaszkyob/space.highport.admin.setQuota/examples)

## Definitions

### `space.highport.admin.setQuota`

**Type**: `procedure`

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`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |
| `quota` | `string` | Yes |  |
| `value` | `integer` | No | The new limit: a count for sites, tiles and spaces, or bytes for tileBytes, maxBlobBytes and monthlyBandwidthBytes. Absent clears the override. |
| `reason` | `string` | No | Why the override was set. Shown by getQuota. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |
| `quotas` | `array` | Yes |  |

## Raw Schema

```json
{
  "id": "space.highport.admin.setQuota",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "did",
            "quota"
          ],
          "properties": {
            "did": {
              "type": "string",
              "format": "did"
            },
            "quota": {
              "type": "string",
              "knownValues": [
                "sites",
                "tiles",
                "tileBytes",
                "spaces",
                "maxBlobBytes",
                "monthlyBandwidthBytes"
              ]
            },
            "value": {
              "type": "integer",
              "minimum": 0,
              "description": "The new limit: a count for sites, tiles and spaces, or bytes for tileBytes, maxBlobBytes and monthlyBandwidthBytes. Absent clears the override."
            },
            "reason": {
              "type": "string",
              "maxLength": 1000,
              "description": "Why the override was set. Shown by getQuota."
            }
          }
        },
        "encoding": "application/json"
      },
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "did",
            "quotas"
          ],
          "properties": {
            "did": {
              "type": "string",
              "format": "did"
            },
            "quotas": {
              "type": "array",
              "items": {
                "ref": "space.highport.admin.getQuota#quotaView",
                "type": "ref"
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "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."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
