# QuotaDefinition

> Tracon documentation. Tracon is a .NET package family that adds a control
> plane on Microsoft Agent Framework, published as NuGet packages that run
> inside your own ASP.NET Core application.
>
> Page: https://tracon.dev/http-api/schemas/quotadefinition/
> Summary: OpenAPI request or response schema for QuotaDefinition, including required fields, defaults, constraints, and linked nested types.

[← All HTTP schemas](/http-api/schemas/)

A quota rule defined for a tenant or an agent.

**Shape:** `object`

| Property | Required | Type | Description | Rules |
|---|---|---|---|---|
| `id` | yes | `string (uuid)` | The rule identifier. | — |
| `tenantId` | yes | `string` | The tenant the rule belongs to. | — |
| `agentName` | no | `string` | The agent the rule is bound to. If `null`, the rule applies to all of the tenant's runs. | — |
| `period` | yes | [`QuotaPeriod`](/http-api/schemas/quotaperiod/) | The counter's reset interval. | — |
| `maxRuns` | no | `integer (int64)` | The maximum number of runs per period. Unlimited if `null`. | pattern `^-?(?:0\\|[1-9]\d*)$` |
| `maxTokens` | no | `integer (int64)` | The maximum tokens per period. Unlimited if `null`. | pattern `^-?(?:0\\|[1-9]\d*)$` |
| `maxCost` | no | `number (double)` | The maximum monetary amount per period. Unlimited if `null`. | pattern `^-?(?:0\\|[1-9]\d*)(?:\.\d+)?$` |
| `enabled` | no | `boolean` | Whether the rule is enabled. | — |
| `createdAt` | yes | `string (date-time)` | The creation time (UTC). | — |
| `updatedAt` | yes | `string (date-time)` | The last-updated time (UTC). | — |
