# space.highport.admin.getQuota

> 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.getQuota)
- [Documentation](https://lexicon.garden/lexicon/did:plc:ciygg5hma4q7ah2kxaszkyob/space.highport.admin.getQuota/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:ciygg5hma4q7ah2kxaszkyob/space.highport.admin.getQuota/examples)

## Definitions

### `space.highport.admin.getQuota`

**Type**: `query`

Every quota for one DID: the limit in effect, the deployment default, and any operator override.

#### Parameters

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

#### Output

**Encoding**: `application/json`

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

### `space.highport.admin.getQuota#quotaView`

**Type**: `object`

One quota for one identity.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `default` | `integer` | Yes | The deployment default, which applies when there is no override. |
| `limit` | `integer` | Yes | The limit in effect: the override if there is one, otherwise the default. Sites, tiles and spaces are counts; tileBytes, maxBlobBytes and monthlyBandwidthBytes are bytes. |
| `overridden` | `boolean` | Yes |  |
| `quota` | `string` | Yes |  |
| `reason` | `string` | No |  |
| `setBy` | `string` (did) | No | The operator who set the override. Absent when there is none. |
| `updatedAt` | `string` (datetime) | No |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Every quota for one DID: the limit in effect, the deployment default, and any operator override.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "did": {
              "format": "did",
              "type": "string"
            },
            "quotas": {
              "items": {
                "ref": "#quotaView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "did",
            "quotas"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "did": {
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "did"
        ],
        "type": "params"
      },
      "type": "query"
    },
    "quotaView": {
      "description": "One quota for one identity.",
      "properties": {
        "default": {
          "description": "The deployment default, which applies when there is no override.",
          "minimum": 0,
          "type": "integer"
        },
        "limit": {
          "description": "The limit in effect: the override if there is one, otherwise the default. Sites, tiles and spaces are counts; tileBytes, maxBlobBytes and monthlyBandwidthBytes are bytes.",
          "minimum": 0,
          "type": "integer"
        },
        "overridden": {
          "type": "boolean"
        },
        "quota": {
          "knownValues": [
            "sites",
            "tiles",
            "tileBytes",
            "spaces",
            "maxBlobBytes",
            "monthlyBandwidthBytes"
          ],
          "type": "string"
        },
        "reason": {
          "maxLength": 1000,
          "type": "string"
        },
        "setBy": {
          "description": "The operator who set the override. Absent when there is none.",
          "format": "did",
          "type": "string"
        },
        "updatedAt": {
          "format": "datetime",
          "type": "string"
        }
      },
      "required": [
        "quota",
        "limit",
        "default",
        "overridden"
      ],
      "type": "object"
    }
  },
  "id": "space.highport.admin.getQuota",
  "lexicon": 1
}
```
