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

# ユーザーの上書き設定を設定またはクリア

> ユーザーのサイクルごとの上限のオーバーライドを設定またはクリアします。

ユーザー単位の設定です。対象ユーザーはアカウントメンバーであればよく、ティアは
関係しません。ユーザーのティア割り当てが変更されることはありません。

フィールドの詳細と使用例については、[予算](https://docs.devinenterprise.com/ja/admin/billing/budgets.md#set-or-clear-a-users-override)を参照してください。

## 権限

エンタープライズレベルで `ManageAcuLimits` 権限を持つ[サービスユーザー](https://docs.devinenterprise.com/ja/api-reference/v3/service-users/members-service-users.md)または[個人用アクセストークン](https://docs.devinenterprise.com/ja/api-reference/personal-access-tokens.md)、あるいは対象の予算に対する[委任アクセス](https://docs.devinenterprise.com/ja/admin/billing/budgets.md#who-can-manage-a-budget)が必要です。


## OpenAPI

````yaml ja/v3-openapi.yaml PATCH /v3/enterprise/usage-policies/budgets/{budget_id}/users/{user_id}
openapi: 3.1.0
info:
  description: Service User 認証および RBAC に対応した Devin v3 API
  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: ユーザーの上書き設定を設定またはクリア
      description: |-
        ユーザーのサイクルごとの上限のオーバーライドを設定またはクリアします。

        ユーザー単位の設定です。対象ユーザーはアカウントメンバーであればよく、ティアは
        関係しません。ユーザーのティア割り当てが変更されることはありません。
      operationId: >-
        handle_patch_usage_policy_user_v3_enterprise_usage_policies_budgets__budget_id__users__user_id__patch
      parameters:
        - description: ユーザーID
          in: path
          name: user_id
          required: true
          schema:
            title: User Id
            type: string
        - description: 使用量ポリシーの管理対象となる予算。
          in: path
          name: budget_id
          required: true
          schema:
            description: 使用量ポリシーの管理対象となる予算。
            title: Budget Id
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchTierUserRequest'
        required: true
      responses:
        '204':
          description: 成功レスポンス
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 認証されていません
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: アクセスが禁止されています
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 見つかりません
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 競合
        '410':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 削除済み
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 処理できないコンテンツ
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: リクエスト過多
components:
  schemas:
    PatchTierUserRequest:
      description: |-
        ティアの使用量上限に対するユーザーの上書き設定を設定またはクリアします。

        各単位について、省略した場合は変更されず、``null``を指定すると永続的な上書き設定と
        一時的な上書き設定の両方がクリアされ、値を指定すると``kind``で指定した種類の上書き設定が設定されます。
        一時的な上書き設定は現在の月次請求期間の終了時に失効し、
        それまでは永続的な上書き設定よりも優先されます。
        永続的な上書き設定を設定すると、一時的な上書き設定はクリアされます。
      properties:
        cycle_acu_limit:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          description: 上書き設定の値。nullを指定すると、既存の上書き設定がクリアされます。
          title: Cycle Acu Limit
        kind:
          anyOf:
            - enum:
                - permanent
                - temporary
              type: string
            - type: 'null'
          description: >-
            上書き設定の種類。cycle_acu_limitを設定する場合は必須です。'permanent'は失効せず、一時的な上書き設定をクリアします。'temporary'は永続的な上書き設定を保持したまま、それに優先して適用され、現在の月次請求期間の終了時に失効します。
          title: Kind
      title: PatchTierUserRequest
      type: object
    ProblemDetail:
      description: >-
        v3 API 用の RFC 9457 application/problem+json エラーボディ。


        detail は後方互換性のため、レガシーな {"detail": ...}
        ボディから引き継がれます。その他のメンバーは追加式です。errors にはフィールドレベルのバリデーションエラーが含まれます（422
        の場合のみ）。
      properties:
        detail:
          anyOf:
            - type: string
            - type: 'null'
          description: この事象に固有の、人が読める説明。
          title: Detail
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          description: ブロックされた操作の拒否理由を示す機械可読コード（例："user_frozen"、"migrated_session"）。
          title: Error Code
        errors:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          description: フィールド単位のバリデーションエラー（422 レスポンスのみ）。
          title: Errors
        instance:
          anyOf:
            - type: string
            - type: 'null'
          description: この発生箇所の URI 参照（リクエストパス）。
          title: Instance
        status:
          description: HTTP ステータスコード。
          title: Status
          type: integer
        title:
          description: 問題タイプを人が読める短い要約。
          title: Title
          type: string
        type:
          default: about:blank
          description: 問題タイプを識別する URI 参照。
          title: Type
          type: string
      required:
        - title
        - status
      title: ProblemDetail
      type: object
  securitySchemes:
    bearerAuth:
      description: 'サービスユーザーの認証情報（接頭辞: cog_）'
      scheme: bearer
      type: http

````

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