# Quotas

> SDK methods for the Quotas module, accessed via `soat.quotas`. See the [Quotas module docs](/docs/modules/quotas) for permissions and data model, and each method's REST page for the full request/response schema.

# Quotas

SDK methods for the Quotas module, accessed via `soat.quotas`. See the [Quotas module docs](/docs/modules/quotas) for permissions and data model, and each method's REST page for the full request/response schema.

### `soat.quotas.listQuotas()`

List quotas

- Method: `GET`
- Path: `/api/v1/quotas`

```ts
await soat.quotas.listQuotas({
  query: { /* + optional */ },
});
```

→ [Request & response schema](/docs/api/quotas/list-quotas)

### `soat.quotas.createQuota()`

Create a quota

- Method: `POST`
- Path: `/api/v1/quotas`

```ts
await soat.quotas.createQuota({
  body: { scope, metric, window, limit, /* + optional */ },
});
```

→ [Request & response schema](/docs/api/quotas/create-quota)

### `soat.quotas.getQuota()`

Get a quota

- Method: `GET`
- Path: `/api/v1/quotas/{quota_id}`

```ts
await soat.quotas.getQuota({
  path: { quota_id },
});
```

→ [Request & response schema](/docs/api/quotas/get-quota)

### `soat.quotas.updateQuota()`

Update a quota

- Method: `PATCH`
- Path: `/api/v1/quotas/{quota_id}`

```ts
await soat.quotas.updateQuota({
  path: { quota_id },
  body: { /* + optional */ },
});
```

→ [Request & response schema](/docs/api/quotas/update-quota)

### `soat.quotas.deleteQuota()`

Delete a quota

- Method: `DELETE`
- Path: `/api/v1/quotas/{quota_id}`

```ts
await soat.quotas.deleteQuota({
  path: { quota_id },
});
```

→ [Request & response schema](/docs/api/quotas/delete-quota)
