> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Budgets

> Learn how enterprise budgets form an ACU limit tree, set monthly windows and per-budget user tiers, and manage budgets with the API.

Budgets let you cap ACU usage the way your company is organized: one limit for the account, shared pools for teams or projects, and per-user limits inside each pool.

## Sample use cases

### Departments with delegated admins

Acme Corp has 10 departments. Each department head manages the limits of their orgs. Central IT sets each department's total. This example shows two of them.

Alice, the enterprise admin, creates a budget for each department under the Account budget. She shares each one with its department admin. Each department admin creates a budget for each of their orgs.

![Account budget of 100,000 ACU with Engineering at 30,000 ACU, with Payments and Search, and Marketing at 5,000 ACU.](https://mintcdn.com/cognitionai/_lCZXv8Jkk2Nq1kL/images/admin/budgets/budget-departments.svg?fit=max\&auto=format\&n=_lCZXv8Jkk2Nq1kL\&q=85\&s=fd65b7ebd17f98f03e694dae32493b69)

Department budgets under the Account budget

* Bob, the Engineering department admin, can set limits and temporary limits on any budget under Engineering. For example, he can give Payments a temporary 6,000 ACU limit for a busy week.
* Bob cannot raise Engineering's 30,000 ACU limit. Only Alice can.
* Usage in every Engineering org counts toward the 30,000 ACU limit, even when the org budgets add up to more.

![Budgets page as a department admin](https://mintcdn.com/cognitionai/_lCZXv8Jkk2Nq1kL/images/admin/budgets/dept-admin-tree.png?fit=max\&auto=format\&n=_lCZXv8Jkk2Nq1kL\&q=85\&s=9f921d3d02cf54e6a28792beb1db26b5)

The Budgets page as a department admin, with the Account budget locked

![Raising a child budget limit](https://mintcdn.com/cognitionai/_lCZXv8Jkk2Nq1kL/images/admin/budgets/dept-admin-edit-child.png?fit=max\&auto=format\&n=_lCZXv8Jkk2Nq1kL\&q=85\&s=a12442bc7a00464d08283bad62358864)

A department admin raising a child budget limit

![Department budget limit is read-only](https://mintcdn.com/cognitionai/_lCZXv8Jkk2Nq1kL/images/admin/budgets/dept-admin-own-limit.png?fit=max\&auto=format\&n=_lCZXv8Jkk2Nq1kL\&q=85\&s=7fc6e5bf029581de28e3290e6beb7554)

A department admin cannot change the department budget limit

### A project bucket with higher user limits

Every developer gets 200 ACUs a month. For the migration initiative, Acme Corp sets aside 5,000 ACUs and lets people on the project use more.

Keep the Developer tools orgs in a Developer tools budget with a 200 ACU default tier. Create a Migration initiative budget with a 5,000 ACU limit. Put the project's org in it, and give it a 1,000 ACU default tier. Both budgets sit under the Account budget.

![Developer tools at 20,000 ACU with a 200 ACU default tier, and Migration initiative at 5,000 ACU with a 1,000 ACU default tier.](https://mintcdn.com/cognitionai/_lCZXv8Jkk2Nq1kL/images/admin/budgets/budget-project.svg?fit=max\&auto=format\&n=_lCZXv8Jkk2Nq1kL\&q=85\&s=a0d7477384a985d998a72ef8ae73f481)

Developer tools and Migration initiative budgets with their tiers

* Carol, a developer on the project, can use up to 1,000 ACUs in the Migration org. She can use up to 200 ACUs in the Developer tools orgs.
* The whole project can never use more than 5,000 ACUs in a month.

![My Analytics budget picker](https://mintcdn.com/cognitionai/_lCZXv8Jkk2Nq1kL/images/admin/budgets/my-analytics-multi-budget.png?fit=max\&auto=format\&n=_lCZXv8Jkk2Nq1kL\&q=85\&s=1b91652d38ed08edbcba1468f074af59)

My Analytics budget picker with several budgets

## How budgets work

### Budget tree

Each enterprise account has one budget tree. The root is the **Account budget**, and child budgets sit under it. A tree can be up to three levels deep.

A budget can hold one organization or several. Each organization belongs to exactly one budget. New organizations go under the Account budget.

For example, Acme Corp sets a 100,000 ACU limit on its Account budget. Engineering splits its pool into three child budgets.

![Account budget of 100,000 ACU with Engineering at 40,000 ACU, its three child budgets, and Developer tools at 20,000 ACU with three user limit tiers.](https://mintcdn.com/cognitionai/_lCZXv8Jkk2Nq1kL/images/admin/budgets/budget-tree.svg?fit=max\&auto=format\&n=_lCZXv8Jkk2Nq1kL\&q=85\&s=48dc89ce8cd22e3043b576e5349ce1e0)

Budget tree with budgets and user limit tiers

Tiers are per-user limits inside one budget, not separate budgets.

![Budget tree with utilization per budget](https://mintcdn.com/cognitionai/_lCZXv8Jkk2Nq1kL/images/admin/budgets/tree.png?fit=max\&auto=format\&n=_lCZXv8Jkk2Nq1kL\&q=85\&s=cc09209e5169718deadade894b7b4802)

Budget tree with utilization per budget (mock data)

### Budget limits

A budget limit caps the combined ACU usage of the budget's orgs and the orgs in its child budgets, for one monthly window. A `null` limit means unlimited.

* **Usage counts toward every ancestor.** Usage in a child budget also counts toward its parent and the Account budget.
* **An exhausted ancestor blocks its children.** When any budget on the path runs out, usage in that branch stops.
* **Child limits can add up to more than the parent limit.** The parent limit still caps their combined usage.
* **A budget with no limit is still capped by its parents.**

A budget linked to exactly one organization shares its limit with that organization. The [organization-level ACU limit endpoints](https://docs.devin.ai/api-reference/v3/acu-limits/set-org-devin-acu-limit) remain supported and set it too. You can also use the [update endpoint](#update-a-budget) below.

### What happens when a budget runs out

When a budget runs out, usage stops for its orgs. Usage also stops when any parent budget runs out. Usage resumes in the next monthly window, or when an admin raises the limit or sets a temporary limit.

* **Devin sessions:** new sessions cannot start, and running sessions sleep. Users see "Increase your organization's usage limit."
* **Devin CLI and Desktop local agent:** requests are blocked. Users see "Your organization has reached its monthly usage limit. Ask an account admin to raise it, or wait for the limit to reset next month."
* **Devin Review:** full reviews stop. Automatic reviews and reviews started from the Devin Review page fall back to a diff-only analysis with no findings. Re-runs, reviews started through the API, and Review chat are rejected.

![Composer banner: usage limit reached](https://mintcdn.com/cognitionai/_lCZXv8Jkk2Nq1kL/images/admin/budgets/cloud-limit-reached.png?fit=max\&auto=format\&n=_lCZXv8Jkk2Nq1kL\&q=85\&s=419babb34f9e136d7cd10853b3d18074)

Composer banner when the budget is used up

### Monthly window

Budget limits, user limits, and temporary limits reset at the start of each monthly window. Each window starts on the start day of your billing phase. It is not always the calendar month.

For example, if the billing phase starts on the 15th, the windows run from October 15 to November 14, then from November 15 to December 14.

A **temporary limit** replaces the budget limit for the rest of the current window. The permanent limit returns in the next window. A temporary user override expires at the end of the current window.

![Marketing budget with a temporary limit](https://mintcdn.com/cognitionai/_lCZXv8Jkk2Nq1kL/images/admin/budgets/limits-temporary.png?fit=max\&auto=format\&n=_lCZXv8Jkk2Nq1kL\&q=85\&s=f5394365ee93dd0a9107ec8d650e8a93)

A temporary limit raises Marketing to 6,000 ACUs for this window only

### User limits in a budget

User limits cap how much one person can use in a monthly window. Each budget with a linked organization has its own user limits, and they apply within that budget only.

> [!NOTE]
>
> If your enterprise still uses account-wide user limits, see [Migrating from account-wide user limits](#migrating-from-account-wide-user-limits) for how to move them to budgets.

* **Tiers.** Each budget has its own tiers and one default tier. A tier sets the monthly ACU limit for its members.
* **IdP group mappings.** Map an identity provider group to a tier. Members of the group get that tier.
* **Overrides.** Set a permanent or a temporary limit for one user.
* **Request policies.** Each tier sets how limit-increase requests are handled. `unconditional` and `conditional` approve requests up to the tier's `max_limit`. `manual` sends requests to an admin for review.
* **Scope.** A user limit counts only the user's usage in that budget's orgs.
* **Copy and clear.** Copy tiers from another budget or the account. You can also copy IdP group mappings, assignments, and overrides. Clear all tiers in a budget to start over.

> [!WARNING]
>
> A user limit on a parent budget does not cover its child budgets. For example, if Engineering also holds an org, a 300 ACU user limit on Engineering does not cap a user's usage in Payments or Search.

![Copy usage policies dialog](https://mintcdn.com/cognitionai/_lCZXv8Jkk2Nq1kL/images/admin/budgets/copy-policies.png?fit=max\&auto=format\&n=_lCZXv8Jkk2Nq1kL\&q=85\&s=bafda52c62081f5c5d3d71266eff8cad)

Copy usage policies dialog with Developer tools as the source

### Who can manage a budget

Enterprise admins manage budgets in **Enterprise Settings** under **Budgets**. They manage the whole tree, including the Account budget.

* **Delegation.** An enterprise admin can share a budget with a person or group in the Manage access tab. A delegated admin can create budgets under it, and set limits and temporary limits on those child budgets. Delegation requires separate enablement; reach out to your account team.
* **A delegated admin cannot raise the shared budget's own limit.** Only an admin who manages the parent budget can change it.
* **Members** see their own usage and limit in My Analytics.

![Manage access tab of the Engineering budget](https://mintcdn.com/cognitionai/_lCZXv8Jkk2Nq1kL/images/admin/budgets/dept-admin-access.png?fit=max\&auto=format\&n=_lCZXv8Jkk2Nq1kL\&q=85\&s=a90c02116678e594ff6dfef6511b6724)

Manage access tab of the Engineering budget, with Bob as a manager

## Frequently asked questions

> [accordion] Can org admins set an org's ACU limit?
>
> No. Enterprise admins set org ACU limits. To let a team manage its own limits, share a budget with the team's admin.

> [accordion] Why does the org-limit endpoint return 409?
>
> Once budget limits are enforced for your enterprise, the org-limit endpoint returns HTTP `409` when the org shares its budget with other orgs, or when it sits directly in the Account budget. The error reads "This organization has no limit of its own. Set the limit on its budget." For example, if Globex, Initech, and Umbrella share one budget, a limit write for Globex returns `409`.

> [accordion] What happens to the older user-limit endpoints?
>
> After your enterprise switches to per-budget user limits, the older endpoints keep answering but change meaning:
>
> * Endpoints that take a user and no budget (`/v3beta1/enterprise/usage-policies/users/{user_id}`, `/v3beta1/enterprise/users/{user_id}/consumption/acu-limits`) set that user's limit in one budget only: the budget of the user's billing organization. The user's limits in other budgets do not change. If that organization has no budget, the call returns `409`.
> * The account-wide tier, IdP group, and default user limit endpoints (`/v3beta1/enterprise/usage-policies/tiers`, `/idp-groups`, `/v3beta1/enterprise/users/consumption/acu-limits`) still edit your account-wide tiers, which are no longer enforced.
>
> Use the [budget-scoped endpoints](#tier-endpoints) below to manage every budget.

> [accordion] Can a budget have separate cloud and local limits?
>
> No. A budget has one limit for cloud and local usage together. If your organizations have separate cloud and local limits, your account team combines them before your budgets are created.

> [accordion] When do limits reset?
>
> At the start of each monthly window. The window starts on the start day of your billing phase.

> [accordion] Can an org be in two budgets?
>
> No. Each org belongs to exactly one budget. A budget can hold many orgs.

## Manage budgets with the V3 API

All requests authenticate with an enterprise **service user token**. Callers need the **ManageAcuLimits** account permission or [delegated access](#who-can-manage-a-budget) to the budget. Use `https://api.devin.ai` as the base URL. See the [V3 API overview](https://docs.devin.ai/api-reference/v3/overview.md) for authentication and service user guidance.

Budget-scoped collection endpoints take the budget in the path: `/v3/enterprise/usage-policies/budgets/{budget_id}/...`. Endpoints that address a single tier or request (`/tiers/{tier_id}`, `/requests/{request_id}`) resolve the budget from the tier or request. On `/v3` they return HTTP `404` for an account-wide tier or request; those stay on `/v3beta1` (see [User-level ACU limits](https://docs.devin.ai/admin/billing/user-acu-limits)).

Every endpoint on this page also answers on the same path under `/v3beta1`.

### PATCH semantics

For the `PATCH` endpoints:

* An omitted field is unchanged.
* A field set to `null` is cleared.
* A field set to a value is created or updated.

## Budget endpoints

### List budgets

```http theme={null}
GET /v3/enterprise/usage-policies/budgets
```

Returns a paginated list of the account's budgets, active and archived. Each budget looks like:

```json theme={null}
{
  "budget_id": "budget-abc123",
  "name": "Engineering",
  "parent_budget_id": "budget-root",
  "org_ids": ["org-xyz789"],
  "status": "active",
  "cycle_acu_limit": 2000,
  "temporary_cycle_acu_limit": null
}
```

* `budget_id`: the identifier to use in budget-scoped paths.
* `parent_budget_id`: the parent budget; `null` for the account's root budget.
* `org_ids`: the organizations linked to this budget. Their usage counts against it. Empty when no organization is linked.
* `status`: `active` or `archived`.
* `cycle_acu_limit`: the budget's limit on the ACU consumption charged to it and its descendants per monthly billing window; `null` means unlimited.
* `temporary_cycle_acu_limit`: a limit that overrides `cycle_acu_limit` until the end of the current monthly billing window; `null` when none is live.

### Update a budget

```http theme={null}
PATCH /v3/enterprise/usage-policies/budgets/{budget_id}
```

Partial update; omitted fields are unchanged and `null` clears a limit. At least one field is required.

* `parent_budget_id`: moves the budget, with its sub-budgets, under another active budget. The root budget cannot be moved, and budgets nest at most three levels deep.
* `cycle_acu_limit`, `temporary_cycle_acu_limit`: the budget's limits, as in the list response.

**Request body — set the limit and a temporary bump for this month**

```json theme={null}
{
  "cycle_acu_limit": 2000,
  "temporary_cycle_acu_limit": 2500
}
```

**Request body — remove the limits**

```json theme={null}
{
  "cycle_acu_limit": null,
  "temporary_cycle_acu_limit": null
}
```

**Request body — move the budget under another budget**

```json theme={null}
{
  "parent_budget_id": "budget-platform"
}
```

Returns the updated budget. Setting `temporary_cycle_acu_limit` again restarts it for the current window. For a budget linked to exactly one organization, `cycle_acu_limit` also becomes the organization's ACU limit.

## Tier endpoints

### List tiers

```http theme={null}
GET /v3/enterprise/usage-policies/budgets/{budget_id}/tiers
```

Returns a paginated list of the budget's tiers in precedence order: highest `priority` first, newest tier first within a priority. Each tier looks like:

```json theme={null}
{
  "tier_id": "tier-abc123",
  "name": "Engineers",
  "is_default": true,
  "cycle_acu_limit": 500,
  "policy": "manual",
  "max_limit": null,
  "priority": 0,
  "member_count": 42,
  "created_at": 1735689600
}
```

* `is_default`: whether this is the budget's default tier.
* `cycle_acu_limit`: the default per-cycle ACU limit for each member; `null` means uncapped.
* `policy`: how limit-increase requests against the tier are handled — `unconditional` and `conditional` approve up to `max_limit`, `manual` requires admin review.
* `max_limit`: the maximum limit to which increase requests are approved; `null` approves without a ceiling. Always `null` when `cycle_acu_limit` is `null`.
* `priority`: ranks the tier among a user's IdP-group-mapped tiers — the highest value wins, ties broken by newest tier. An explicit user assignment overrides the ranking, and the default tier never ranks.
* `member_count`: the number of users currently in the tier. For the default tier this counts every budget member not in another tier.

### Create a tier

```http theme={null}
POST /v3/enterprise/usage-policies/budgets/{budget_id}/tiers
```

**Request body**

```json theme={null}
{
  "name": "Engineers",
  "cycle_acu_limit": 500,
  "policy": "manual"
}
```

The budget's first tier automatically becomes its default tier. Returns HTTP `201` with the created tier.

### Get a tier

```http theme={null}
GET /v3/enterprise/usage-policies/tiers/{tier_id}
```

### Update a tier

```http theme={null}
PATCH /v3/enterprise/usage-policies/tiers/{tier_id}
```

Partial update; omitted fields are unchanged.

```json theme={null}
{
  "name": "Engineering",
  "cycle_acu_limit": 750
}
```

### Delete a tier

```http theme={null}
DELETE /v3/enterprise/usage-policies/tiers/{tier_id}
```

Returns HTTP `204` on success. The default tier cannot be deleted (promote another tier first). A tier that still has users must have them moved first, and any IdP group mappings to the tier must be removed first.

## Tier user endpoints

### List a tier's users

```http theme={null}
GET /v3/enterprise/usage-policies/tiers/{tier_id}/users
```

Returns a paginated list of the tier's users with their resolved limits. For the default tier, this is every budget member not in another tier:

```json theme={null}
{
  "user_id": "user_abc123",
  "name": "Ada Lovelace",
  "email": "ada@example.com",
  "cycle_acu_limit_override": null,
  "temporary_cycle_acu_limit": 800,
  "effective_cycle_acu_limit": 800,
  "limit_source": "temporary_override",
  "membership": "explicit"
}
```

* `cycle_acu_limit_override`: the user's permanent override, if any.
* `temporary_cycle_acu_limit`: the user's temporary override, present only while it is live in the current monthly billing window.
* `effective_cycle_acu_limit`: the limit currently enforced for the user; `null` means uncapped.
* `limit_source`: where the effective limit comes from — `override` (permanent), `temporary_override`, or `tier`.
* `membership`: why the user is in the tier — `explicit` (directly assigned), `idp_group` (via their winning IdP group mapping), or `default` (fallback to the default tier).

### Assign a user to a tier

```http theme={null}
PUT /v3/enterprise/usage-policies/tiers/{tier_id}/users/{user_id}
```

Idempotent. Returns HTTP `204` on success. Moving a user from another tier clears any per-user override, so they start out inheriting the destination tier's limit.

### Remove a user from a tier

```http theme={null}
DELETE /v3/enterprise/usage-policies/tiers/{tier_id}/users/{user_id}
```

Removes the user's explicit tier assignment (and any override). The user then resolves to their IdP-group-mapped tier, if any, else the default tier. Returns HTTP `204` on success.

## User endpoints

### Get a user's limits

```http theme={null}
GET /v3/enterprise/usage-policies/budgets/{budget_id}/users/{user_id}
```

Returns the user's resolved tier, limits, and pending request within the budget. Includes the [tier user fields](#list-a-tiers-users) above plus:

```json theme={null}
{
  "tier_id": "tier-abc123",
  "tier_name": "Engineers",
  "tier_cycle_acu_limit": 500,
  "pending_request_id": null,
  "pending_request_cycle_acu_limit": null
}
```

* `tier_id` / `tier_name`: the tier the user's limit resolves from (explicit assignment, IdP group mapping, or the default tier); `null` when the budget has no tiers.
* `tier_cycle_acu_limit`: the tier's own limit before any override; `null` means uncapped.
* `pending_request_id` / `pending_request_cycle_acu_limit`: the user's pending limit-increase request (its `request_id`, a string) and the limit it asks for, if any.

### Set or clear a user's override

```http theme={null}
PATCH /v3/enterprise/usage-policies/budgets/{budget_id}/users/{user_id}
```

User-scoped: the target only needs to be a budget member — no tier is involved, and the user's tier assignment is never changed.

**Request body — set a temporary override**

```json theme={null}
{
  "cycle_acu_limit": 800,
  "kind": "temporary"
}
```

`kind` is required when setting a value: `permanent` never expires; `temporary` expires at the end of the current monthly billing window.

**Request body — clear all overrides**

```json theme={null}
{
  "cycle_acu_limit": null
}
```

The endpoint returns HTTP `204` on success.

## IdP group endpoints

Map an IdP group to a tier so its members inherit that tier automatically. Mappings are resolved live from group membership and never change a user's explicit tier assignment — an explicit assignment always wins. A user in several mapped groups resolves to the highest-ranked mapped tier (highest tier `priority`, ties broken by newest tier).

### List IdP group mappings

```http theme={null}
GET /v3/enterprise/usage-policies/budgets/{budget_id}/idp-groups
```

Returns a paginated list of the budget's group-to-tier mappings, oldest first. Filter with `?tier_id=` to list only groups mapped to one tier:

```json theme={null}
{
  "idp_group_id": "grp_abc123",
  "idp_group_name": "Engineering",
  "tier_id": "tier-abc123"
}
```

### Get an IdP group's mapping

```http theme={null}
GET /v3/enterprise/usage-policies/budgets/{budget_id}/idp-groups/{idp_group_name}
```

Returns HTTP `404` if the group has no mapping in the budget.

### Map an IdP group to a tier

```http theme={null}
PUT /v3/enterprise/usage-policies/budgets/{budget_id}/idp-groups/{idp_group_name}
```

**Request body**

```json theme={null}
{
  "tier_id": "tier-abc123"
}
```

Idempotent upsert. The tier must belong to the budget. A group maps to at most one tier per budget, so mapping an already-mapped group moves it to the given tier.

### Unmap an IdP group

```http theme={null}
DELETE /v3/enterprise/usage-policies/budgets/{budget_id}/idp-groups/{idp_group_name}
```

Returns HTTP `204` on success. The mapped tier stops applying to the group's members; users with no explicit assignment and no other mapped tier fall back to the default tier.

## Limit-increase request endpoints

Users can request a higher per-cycle limit. The requester's tier `policy` decides what happens: `unconditional` and `conditional` auto-approve up to the tier's `max_limit`, while `manual` holds the request for admin review through these endpoints.

### List limit-increase requests

```http theme={null}
GET /v3/enterprise/usage-policies/budgets/{budget_id}/requests
```

Returns a paginated list of the budget's requests, filterable with `?status=` (`pending`, `approved`, `denied`, `expired`) and `?user_id=`:

```json theme={null}
{
  "request_id": "42",
  "user_id": "user_abc123",
  "name": "Ada Lovelace",
  "email": "ada@example.com",
  "tier_id": "tier-abc123",
  "tier_name": "Engineers",
  "current_cycle_acu_limit": 500,
  "requested_cycle_acu_limit": 800,
  "message": "Wrapping up a large migration this month",
  "status": "pending",
  "created_at": 1735689600,
  "reviewed_at": null,
  "reviewer": null
}
```

* `request_id`: a string. Pass it back unchanged in the request paths below.
* `tier_id` / `tier_name`: the requester's tier within the budget; `null` when the budget has no tiers.
* `current_cycle_acu_limit`: the limit currently enforced for the requester; `null` means uncapped.
* `status`: `expired` means the request was still pending when its billing cycle ended.
* `reviewer`: the admin who reviewed the request; `null` while pending.

### Get a limit-increase request

```http theme={null}
GET /v3/enterprise/usage-policies/requests/{request_id}
```

### Approve a limit-increase request

```http theme={null}
POST /v3/enterprise/usage-policies/requests/{request_id}/approve
```

Grants the requested limit as a **temporary override** that expires at the end of the current monthly billing window. Optionally grant a different limit:

```json theme={null}
{
  "cycle_acu_limit": 700
}
```

Returns the updated request. Returns HTTP `409` if the request was already reviewed or the requester is no longer an account member.

### Deny a limit-increase request

```http theme={null}
POST /v3/enterprise/usage-policies/requests/{request_id}/deny
```

Returns the updated request, or HTTP `409` if it was already reviewed.

## Example workflows

### Set up a budget's tiers

Find the budget, cap it at 2,000 ACUs a month, then create a default tier so every budget member gets a 500 ACU monthly cap:

```bash theme={null}
curl "https://api.devin.ai/v3/enterprise/usage-policies/budgets" \
  -H "Authorization: Bearer <token>"

curl -X PATCH "https://api.devin.ai/v3/enterprise/usage-policies/budgets/budget-abc123" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"cycle_acu_limit": 2000}'

curl -X POST "https://api.devin.ai/v3/enterprise/usage-policies/budgets/budget-abc123/tiers" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"name": "Standard", "cycle_acu_limit": 500, "policy": "manual"}'
```

Map an IdP group to the tier and give one user a temporary bump for the rest of the month:

```bash theme={null}
curl -X PUT "https://api.devin.ai/v3/enterprise/usage-policies/budgets/budget-abc123/idp-groups/Engineering" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"tier_id": "tier-abc123"}'

curl -X PATCH "https://api.devin.ai/v3/enterprise/usage-policies/budgets/budget-abc123/users/user_abc123" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"cycle_acu_limit": 800, "kind": "temporary"}'
```

## Migrating from account-wide user limits

User limits are moving from the account level to budgets. Your organization limits do not change unless you merge budgets (option 2). With user limits in budgets, each team can have its own limits, and group and user limits live in one place.

Until your enterprise switches, your account-wide tiers and overrides keep applying.

To migrate, you need to be an admin who can edit budgets. Open **Enterprise Settings** > **Usage policies**. At the top is the banner "User limits are migrating to per-budget user limits." Click the banner to show your budgets.

![Migration banner with the Enforce per-budget user limits switch and a table of budgets](https://mintcdn.com/cognitionai/ABQW9Vm6-2kyvMmW/images/admin/budgets/migration-helper.png?fit=max\&auto=format\&n=ABQW9Vm6-2kyvMmW\&q=85\&s=c80b438f91a610f79019fb32e1f1a156)

The migration banner, expanded to show your budgets

Choose one of the three options below, then [turn on enforcement](#turn-on-enforcement).

### Option 1: Copy user limits to each budget

Select all budgets with the checkbox in the table header, then click **Copy user limits**. Every budget gets your current tiers. Under **What to copy**, IdP group mappings, assignments, and overrides are selected by default; keep them selected to copy them too.

![Copy user limits dialog with tiers, IdP group mappings, assignments, and overrides selected](https://mintcdn.com/cognitionai/ABQW9Vm6-2kyvMmW/images/admin/budgets/migration-copy-dialog.png?fit=max\&auto=format\&n=ABQW9Vm6-2kyvMmW\&q=85\&s=65c9dbc1c03e2cb73d7596cf2a92da57)

Copying user limits to every selected budget

After the copy, the **Usage tiers** column shows the number of tiers in each budget.

![Budgets table after the copy, with three usage tiers in every budget](https://mintcdn.com/cognitionai/ABQW9Vm6-2kyvMmW/images/admin/budgets/migration-copied.png?fit=max\&auto=format\&n=ABQW9Vm6-2kyvMmW\&q=85\&s=f08b8946e5a2c28ab420077cfc8c1904)

Each budget has the copied tiers

A person who works in several budgets gets a user limit in each budget, so their total across budgets can be higher than their account-wide limit was.

### Option 2: One user limit per person; organization limits stop applying

1. Select your Account budget and click **Copy user limits**. If your Account budget is not in the list, do steps 2 and 3 first; it is listed once it holds an organization.

2. Select each of your other budgets and click **Merge into** followed by your Account budget's name.

   ![Budgets table with every budget except the Account budget selected and the Merge into Account budget button](https://mintcdn.com/cognitionai/ABQW9Vm6-2kyvMmW/images/admin/budgets/migration-merge-selected.png?fit=max\&auto=format\&n=ABQW9Vm6-2kyvMmW\&q=85\&s=c9fba7bc0436b8b6c3f25d8bce89f827)

   The other budgets selected, ready to merge into the Account budget

3. Confirm the merge.

   ![Dialog asking to merge six budgets into the Account budget](https://mintcdn.com/cognitionai/ABQW9Vm6-2kyvMmW/images/admin/budgets/migration-merge-dialog.png?fit=max\&auto=format\&n=ABQW9Vm6-2kyvMmW\&q=85\&s=a541780cc8b73fdbb11d8d2f62d522b0)

   Confirming the merge

Those organizations move under the Account budget, their budgets are archived, and their separate organization limits no longer apply. Only the Account budget is left in the list.

![Budgets table with only the Account budget, which has three usage tiers](https://mintcdn.com/cognitionai/ABQW9Vm6-2kyvMmW/images/admin/budgets/migration-merged.png?fit=max\&auto=format\&n=ABQW9Vm6-2kyvMmW\&q=85\&s=841703de8a194d10ba83032dd4f4b429)

After the merge, the Account budget holds every organization

### Option 3: Something else

Group organizations under budgets, and set different user limits per budget. See [Departments with delegated admins](#departments-with-delegated-admins) or [A project bucket with higher user limits](#a-project-bucket-with-higher-user-limits) for sample configurations. Your account team can also help set this up with you.

### Turn on enforcement

Turn on **Enforce per-budget user limits**. Before you confirm, Devin shows how many people would be blocked, based on their usage in the current billing cycle.

![Enforce per-budget user limits dialog showing how many users would be blocked](https://mintcdn.com/cognitionai/ABQW9Vm6-2kyvMmW/images/admin/budgets/migration-enforce-confirm.png?fit=max\&auto=format\&n=ABQW9Vm6-2kyvMmW\&q=85\&s=c093a3a4568a9095cd570d0a8fc2f0ff)

Confirming enforcement, with the number of people who would be blocked

The banner then reads "Per-budget user limits are in force."

![Banner reading Per-budget user limits are in force, with the switch on](https://mintcdn.com/cognitionai/ABQW9Vm6-2kyvMmW/images/admin/budgets/migration-enforced.png?fit=max\&auto=format\&n=ABQW9Vm6-2kyvMmW\&q=85\&s=d035f214116e812d1ce52a2410bff983)

Per-budget user limits enforced

When **Enforce per-budget user limits** is on, your account-wide tiers and overrides no longer apply. Each person is limited only by the user limits of the budget they are working in. A budget with no tiers has no user limit, except for a person with their own override in that budget, so copy your user limits to every budget before you turn enforcement on. To turn enforcement off again, click the banner, turn the switch off, and confirm **Revert to account-wide user limits**; the account-wide limits then apply as before.

### If you set limits through the API

Start using the [budgets API](#manage-budgets-with-the-v3-api). It sets each budget's limit, tiers, and overrides under `/v3/enterprise/usage-policies/budgets`. The [organization limits API](https://docs.devin.ai/api-reference/v3/acu-limits/set-org-devin-acu-limit) (under `/v3/enterprise/consumption/acu-limits/devin`) remains supported. The older user-limit endpoints change meaning after the switch; see [What happens to the older user-limit endpoints?](#frequently-asked-questions)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.