> ## 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.

# Set or clear a user's override

> Set or clear a user's per-cycle limit override.

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

See [Budgets](https://docs.devin.ai/admin/billing/budgets.md#set-or-clear-a-users-override) for field details and examples.

## Permissions

Requires a [service user](https://docs.devin.ai/api-reference/v3/service-users/members-service-users.md) or [personal access token](https://docs.devin.ai/api-reference/personal-access-tokens.md) with the `ManageAcuLimits` permission at the enterprise level, or [delegated access](https://docs.devin.ai/admin/billing/budgets.md#who-can-manage-a-budget) to the budget.


## OpenAPI

````yaml v3-openapi.yaml PATCH /v3/enterprise/usage-policies/budgets/{budget_id}/users/{user_id}
openapi: 3.1.0
info:
  description: Devin v3 API with Service User authentication and RBAC
  title: Devin API v3
  version: 3.0.0
servers: []
security:
  - bearerAuth: []
paths:
  /v3/enterprise/usage-policies/budgets/{budget_id}/users/{user_id}:
    patch:
      tags:
        - tiers
      summary: Set or clear a user's override
      description: |-
        Set or clear a user's per-cycle limit override.

        User-scoped: the target only needs to be an account member — no tier is
        involved, and the user's tier assignment is never changed.
      operationId: >-
        handle_patch_usage_policy_user_v3_enterprise_usage_policies_budgets__budget_id__users__user_id__patch
      parameters:
        - description: User ID
          in: path
          name: user_id
          required: true
          schema:
            title: User Id
            type: string
        - description: The budget whose usage policies are managed.
          in: path
          name: budget_id
          required: true
          schema:
            description: The budget whose usage policies are managed.
            title: Budget Id
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchTierUserRequest'
        required: true
      responses:
        '204':
          description: Successful Response
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Not Found
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Conflict
        '410':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Gone
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Unprocessable Content
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Too Many Requests
components:
  schemas:
    PatchTierUserRequest:
      description: >-
        Set or clear a user's override of the tier's limit.


        Per unit: omitted leaves it unchanged, ``null`` clears both permanent
        and

        temporary overrides, and a value sets an override of the given ``kind``.

        A temporary override expires at the end of the current monthly billing

        window and takes precedence over any permanent override until then;

        setting a permanent override clears any temporary one.
      properties:
        cycle_acu_limit:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          description: Override value; null clears any existing override.
          title: Cycle Acu Limit
        kind:
          anyOf:
            - enum:
                - permanent
                - temporary
              type: string
            - type: 'null'
          description: >-
            Override kind, required when cycle_acu_limit is set: 'permanent'
            never expires and clears any temporary override; 'temporary' keeps
            any permanent override, takes precedence over it, and expires at the
            end of the current monthly billing window.
          title: Kind
      title: PatchTierUserRequest
      type: object
    ProblemDetail:
      description: >-
        RFC 9457 application/problem+json error body for the v3 API.


        detail is retained from the legacy {"detail": ...} body for back-compat;
        the

        other members are additive. errors carries field-level validation
        failures

        (422 only).
      properties:
        detail:
          anyOf:
            - type: string
            - type: 'null'
          description: A human-readable explanation specific to this occurrence.
          title: Detail
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Machine-readable code for blocked-action refusals (e.g.
            "user_frozen", "migrated_session").
          title: Error Code
        errors:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          description: Field-level validation errors (422 responses only).
          title: Errors
        instance:
          anyOf:
            - type: string
            - type: 'null'
          description: A URI reference (the request path) for this occurrence.
          title: Instance
        status:
          description: The HTTP status code.
          title: Status
          type: integer
        title:
          description: A short, human-readable summary of the problem type.
          title: Title
          type: string
        type:
          default: about:blank
          description: A URI reference identifying the problem type.
          title: Type
          type: string
      required:
        - title
        - status
      title: ProblemDetail
      type: object
  securitySchemes:
    bearerAuth:
      description: 'Service User credential (prefix: cog_)'
      scheme: bearer
      type: http

````

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