---
title: "Add or change a per-email or per-domain workspace limit"
method: PUT
path: "/v1/admin/limits/workspace-creation/rules"
tags: ["Admin"]
---

# Add or change a per-email or per-domain workspace limit

`PUT /v1/admin/limits/workspace-creation/rules`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/admin/limits/workspace-creation/rules`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Values are normalized first: lowercase, +tags removed, and Gmail dots removed, so aliases share one rule. A domain limit applies to each person at that domain.

## Request body

- object
  - `scope` 'email' | 'domain', required
  - `value` string, required
  - `limit` integer, nullable, required

## Response `200`

Updated limits.

- WorkspaceLimitSettings
  - `enforcementEnabled` boolean, required
  - `defaultLimit` integer, required: Deployment default. 0 means no limit.
  - `rules` object[], required
    - `id` string, required
    - `scope` 'email' | 'domain', required
    - `value` string, required: Normalized email address or domain.
    - `limit` integer, nullable, required: Workspaces each matching person can create. Null means no limit.
    - `updatedAt` string, date-time, required

## Other responses

- `400`: Invalid request.
- `401`: Sign in required.
- `403`: Platform administrator required.

## Changes

- **2026-11-25** `3e8d6c3b1488`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/admin/limits/workspace-creation/rules/put.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
