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

# Update a budget

> Applies a merge patch: a field the request omits is left unchanged, and an explicit null clears `team_id` or `filter_expression`. Changing `amount`, `period` or `filter_expression` clears the budget's evaluated `status`, `spend` and `forecast` — they measured the old definition — and lets a monitor watching it alert again on thresholds it has already reported. Evaluate the budget to refresh them without waiting for the next daily run.



## OpenAPI

````yaml https://api.select.dev/v2/openapi.json patch /budgets/{budget_id}
openapi: 3.1.0
info:
  title: SELECT API (v2)
  version: 0.1.0
servers:
  - url: https://api.select.dev/v2
    description: SELECT API v2
security: []
paths:
  /budgets/{budget_id}:
    patch:
      tags:
        - budgets
      summary: Update a budget
      description: >-
        Applies a merge patch: a field the request omits is left unchanged, and
        an explicit null clears `team_id` or `filter_expression`. Changing
        `amount`, `period` or `filter_expression` clears the budget's evaluated
        `status`, `spend` and `forecast` — they measured the old definition —
        and lets a monitor watching it alert again on thresholds it has already
        reported. Evaluate the budget to refresh them without waiting for the
        next daily run.
      operationId: update_budget_route_budgets__budget_id__patch
      parameters:
        - name: budget_id
          in: path
          required: true
          schema:
            type: string
            title: Budget Id
        - name: If-Match
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              The budget's current ETag, from a prior read. Required: the
              request is rejected if the budget has changed since.
            title: If-Match
          description: >-
            The budget's current ETag, from a prior read. Required: the request
            is rejected if the budget has changed since.
        - name: x-tenant-id
          in: header
          required: true
          schema:
            type: string
            description: The organization ID the request is scoped to.
            title: X-Tenant-Id
          description: The organization ID the request is scoped to.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BudgetPatch'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BudgetV2'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '405':
          $ref: '#/components/responses/MethodNotAllowed'
        '408':
          $ref: '#/components/responses/RequestTimeout'
        '409':
          $ref: '#/components/responses/Conflict'
        '412':
          $ref: '#/components/responses/PreconditionFailed'
        '422':
          $ref: '#/components/responses/ValidationFailed'
        '428':
          $ref: '#/components/responses/PreconditionRequired'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
      security:
        - HTTPBearer: []
components:
  schemas:
    BudgetPatch:
      properties:
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        amount:
          anyOf:
            - type: number
            - type: 'null'
          title: Amount
          description: The spend threshold for one period.
        team_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Team Id
          description: >-
            The team this budget is scoped to. Null scopes it to the whole
            organization.
        period:
          anyOf:
            - oneOf:
                - $ref: '#/components/schemas/FixedRangeSchedule'
                - $ref: '#/components/schemas/RecurringSchedule'
                - $ref: '#/components/schemas/CustomSchedule'
              discriminator:
                propertyName: schedule_type
                mapping:
                  custom:
                    $ref: '#/components/schemas/CustomSchedule'
                  fixed_range:
                    $ref: '#/components/schemas/FixedRangeSchedule'
                  monthly:
                    $ref: '#/components/schemas/RecurringSchedule'
                  quarterly:
                    $ref: '#/components/schemas/RecurringSchedule'
                  weekly:
                    $ref: '#/components/schemas/RecurringSchedule'
                  yearly:
                    $ref: '#/components/schemas/RecurringSchedule'
            - type: 'null'
          title: Period
          description: The recurrence or date range the budget's threshold applies over.
        started_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Started At
          description: When the budget takes effect.
        filter_expression:
          anyOf:
            - $ref: >-
                #/components/schemas/FilterExpression_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Input
            - type: 'null'
          description: >-
            Narrows which spend counts toward the budget. Null counts all spend.
            Use exactly one of `filter_expression` or `filter_expression_json`.
        filter_expression_json:
          anyOf:
            - type: string
            - type: 'null'
          title: Filter Expression Json
          description: >-
            A JSON string representation of the filter expression. This is
            primarily used for Terraform provider support. Use exactly one of
            `filter_expression` or `filter_expression_json`. This value is
            validated in the same manner as `filter_expression`.
      additionalProperties: false
      type: object
      title: BudgetPatch
      description: >-
        Changes to apply to a budget.


        An omitted field is left unchanged; an explicit null clears `team_id` or

        `filter_expression`. Moving a budget between scopes requires permission
        to

        write budgets in the scope it leaves and the one it joins.
    BudgetV2:
      properties:
        id:
          type: string
          title: Id
          description: The unique identifier of the budget.
          readOnly: true
          x-terraform-computed: true
        name:
          type: string
          title: Name
        amount:
          type: number
          title: Amount
          description: The spend threshold for one period.
        status:
          anyOf:
            - type: string
              enum:
                - on_track
                - at_risk
                - overspending
                - expired
            - type: 'null'
          title: Status
          description: >-
            The budget's current standing against its spend threshold. Measured
            by a daily refresh, or on demand by evaluating the budget. Null
            until one of those has run: creating or changing a budget does not
            measure it, and changing what it measures clears it again.
          readOnly: true
          x-terraform-computed: true
        team_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Team Id
          description: >-
            The team this budget is scoped to. Null scopes it to the whole
            organization.
        period:
          oneOf:
            - $ref: '#/components/schemas/FixedRangeSchedule'
            - $ref: '#/components/schemas/RecurringSchedule'
            - $ref: '#/components/schemas/CustomSchedule'
          title: Period
          description: The recurrence or date range the budget's threshold applies over.
          discriminator:
            propertyName: schedule_type
            mapping:
              custom:
                $ref: '#/components/schemas/CustomSchedule'
              fixed_range:
                $ref: '#/components/schemas/FixedRangeSchedule'
              monthly:
                $ref: '#/components/schemas/RecurringSchedule'
              quarterly:
                $ref: '#/components/schemas/RecurringSchedule'
              weekly:
                $ref: '#/components/schemas/RecurringSchedule'
              yearly:
                $ref: '#/components/schemas/RecurringSchedule'
        started_at:
          type: string
          title: Started At
        filter_expression:
          anyOf:
            - $ref: >-
                #/components/schemas/FilterExpression_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Output
            - type: 'null'
          description: Narrows which spend counts toward the budget. Null counts all spend.
        filter_expression_json:
          anyOf:
            - type: string
            - type: 'null'
          title: Filter Expression Json
          description: >-
            The JSON string representation of the filter expression, used by the
            Terraform provider. Null when the budget has no filter.
          readOnly: true
          x-terraform-computed: true
        current_period_start:
          type: string
          format: date
          title: Current Period Start
          description: The start date of the period the budget is currently in.
          readOnly: true
          x-terraform-computed: true
        current_period_end:
          type: string
          format: date
          title: Current Period End
          description: The end date of the period the budget is currently in.
          readOnly: true
          x-terraform-computed: true
        budget_end_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Budget End Date
          description: When the budget itself expires. Null if it never does.
          readOnly: true
          x-terraform-computed: true
        created_by:
          type: string
          title: Created By
          description: Who created the budget.
          readOnly: true
          x-doit-confidentiality: customer-data
          x-doit-pii: true
          x-terraform-computed: true
        updated_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated By
          description: >-
            Who last changed the budget. Null if no one has since it was
            created.
          readOnly: true
          x-doit-confidentiality: customer-data
          x-doit-pii: true
          x-terraform-computed: true
        create_time:
          type: string
          title: Create Time
          description: RFC 3339 UTC creation timestamp.
          readOnly: true
          x-terraform-computed: true
        update_time:
          type: string
          title: Update Time
          description: RFC 3339 UTC last-update timestamp.
          readOnly: true
          x-terraform-computed: true
        etag:
          type: string
          title: Etag
          description: Opaque strong ETag.
          readOnly: true
          x-terraform-computed: true
      type: object
      required:
        - id
        - name
        - amount
        - period
        - started_at
        - current_period_start
        - current_period_end
        - created_by
        - create_time
        - update_time
        - etag
      title: Budget
      description: >-
        A spend threshold over a recurring or fixed period.


        A budget compares actual and forecasted spend against `amount` for its

        current period, optionally narrowed to a team and to a slice of spend
        via

        `filter_expression`. The period dates are derived from `period` as the
        budget

        is read, so they always describe the period it is in now. `status` is
        measured

        against spend instead, on the cadence its own description gives.
    FixedRangeSchedule:
      properties:
        schedule_type:
          type: string
          const: fixed_range
          title: Schedule Type
        start_date:
          type: string
          format: date
          title: Start Date
        end_date:
          type: string
          format: date
          title: End Date
      type: object
      required:
        - schedule_type
        - start_date
        - end_date
      title: FixedRangeSchedule
    RecurringSchedule:
      properties:
        schedule_type:
          type: string
          enum:
            - weekly
            - monthly
            - quarterly
            - yearly
          title: Schedule Type
        start_date:
          type: string
          format: date
          title: Start Date
        expires_on:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Expires On
        expires_after_occurrences:
          anyOf:
            - type: integer
            - type: 'null'
          title: Expires After Occurrences
      type: object
      required:
        - schedule_type
        - start_date
      title: RecurringSchedule
    CustomSchedule:
      properties:
        schedule_type:
          type: string
          const: custom
          title: Schedule Type
        start_date:
          type: string
          format: date
          title: Start Date
        repeat_every:
          type: integer
          minimum: 1
          title: Repeat Every
        repeat_unit:
          type: string
          enum:
            - days
            - weeks
            - months
            - quarters
            - years
          title: Repeat Unit
        expires_on:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Expires On
        expires_after_occurrences:
          anyOf:
            - type: integer
            - type: 'null'
          title: Expires After Occurrences
      type: object
      required:
        - schedule_type
        - start_date
        - repeat_every
        - repeat_unit
      title: CustomSchedule
    FilterExpression_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Input:
      properties:
        operator:
          type: string
          enum:
            - and
            - or
          title: Operator
        filters:
          items:
            anyOf:
              - $ref: >-
                  #/components/schemas/FilterExpression_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Input
              - $ref: >-
                  #/components/schemas/EqFilter_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Input
              - $ref: >-
                  #/components/schemas/InFilter_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Input
              - $ref: >-
                  #/components/schemas/ArrayContainsFilter_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Input
              - $ref: >-
                  #/components/schemas/IsFilter_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Input
              - $ref: >-
                  #/components/schemas/LikeFilter_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Input
              - $ref: >-
                  #/components/schemas/MultiLikeFilter_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Input
              - $ref: >-
                  #/components/schemas/InRelativeDateRangeFilter_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Input
          type: array
          title: Filters
        component_type:
          anyOf:
            - type: string
              const: Resource Filter
            - type: 'null'
          title: Component Type
      type: object
      required:
        - operator
        - filters
      title: >-
        FilterExpression[Union[SemiStructuredDimension[ConsolidatedDailySpendDimensions],
        ConsolidatedDailySpendDimensions]]
    FilterExpression_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Output:
      properties:
        operator:
          type: string
          enum:
            - and
            - or
          title: Operator
        filters:
          items:
            anyOf:
              - $ref: >-
                  #/components/schemas/FilterExpression_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Output
              - $ref: >-
                  #/components/schemas/EqFilter_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Output
              - $ref: >-
                  #/components/schemas/InFilter_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Output
              - $ref: >-
                  #/components/schemas/ArrayContainsFilter_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Output
              - $ref: >-
                  #/components/schemas/IsFilter_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Output
              - $ref: >-
                  #/components/schemas/LikeFilter_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Output
              - $ref: >-
                  #/components/schemas/MultiLikeFilter_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Output
              - $ref: >-
                  #/components/schemas/InRelativeDateRangeFilter_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Output
          type: array
          title: Filters
        component_type:
          anyOf:
            - type: string
              const: Resource Filter
            - type: 'null'
          title: Component Type
      type: object
      required:
        - operator
        - filters
      title: >-
        FilterExpression[Union[SemiStructuredDimension[ConsolidatedDailySpendDimensions],
        ConsolidatedDailySpendDimensions]]
    ProblemDetail:
      additionalProperties: true
      description: >-
        RFC 9457-style error payload, served as ``application/problem+json``.


        ``code`` is the stable, machine-readable identifier — consumers branch
        on it,

        never on ``title``. ``type`` stays ``about:blank``: we keep no per-error

        documentation pages. There is no ``instance``/request-id member (we
        don't run

        access logs). See the flat error-code catalogue in §4 of the standards
        doc.
      properties:
        type:
          default: about:blank
          title: Type
          type: string
        title:
          type: string
          title: Title
        status:
          title: Status
          type: integer
        detail:
          title: Detail
          type: string
        code:
          title: Code
          type: string
        retryable:
          title: Retryable
          type: boolean
        details:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          default: null
          title: Details
      required:
        - title
        - status
        - detail
        - code
        - retryable
      title: ProblemDetail
      type: object
    EqFilter_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Input:
      properties:
        field:
          anyOf:
            - $ref: >-
                #/components/schemas/SemiStructuredDimension_ConsolidatedDailySpendDimensions_
            - $ref: '#/components/schemas/ConsolidatedDailySpendDimensions'
          title: Field
        not:
          type: boolean
          title: Not
          default: false
        value:
          anyOf:
            - type: integer
            - type: number
            - type: boolean
            - type: string
            - type: string
              format: date
            - additionalProperties:
                anyOf:
                  - type: integer
                  - type: number
                  - type: boolean
                  - type: string
                  - type: string
                    format: date
                  - items:
                      anyOf:
                        - type: integer
                        - type: number
                        - type: boolean
                        - type: string
                        - type: string
                          format: date
                        - type: 'null'
                    type: array
                  - type: 'null'
              type: object
            - type: 'null'
          title: Value
        operator:
          type: string
          enum:
            - '>'
            - '>='
            - <
            - <=
            - '='
            - '!='
          title: Operator
      type: object
      required:
        - field
        - value
        - operator
      title: >-
        EqFilter[Union[SemiStructuredDimension[ConsolidatedDailySpendDimensions],
        ConsolidatedDailySpendDimensions]]
    InFilter_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Input:
      properties:
        field:
          anyOf:
            - $ref: >-
                #/components/schemas/SemiStructuredDimension_ConsolidatedDailySpendDimensions_
            - $ref: '#/components/schemas/ConsolidatedDailySpendDimensions'
          title: Field
        not:
          type: boolean
          title: Not
          default: false
        values:
          items:
            anyOf:
              - type: integer
              - type: number
              - type: boolean
              - type: string
              - type: string
                format: date
              - additionalProperties:
                  anyOf:
                    - type: integer
                    - type: number
                    - type: boolean
                    - type: string
                    - type: string
                      format: date
                    - items:
                        anyOf:
                          - type: integer
                          - type: number
                          - type: boolean
                          - type: string
                          - type: string
                            format: date
                          - type: 'null'
                      type: array
                    - type: 'null'
                type: object
              - type: 'null'
          type: array
          title: Values
        operator:
          type: string
          enum:
            - in
            - not in
          title: Operator
      type: object
      required:
        - field
        - values
        - operator
      title: >-
        InFilter[Union[SemiStructuredDimension[ConsolidatedDailySpendDimensions],
        ConsolidatedDailySpendDimensions]]
    ArrayContainsFilter_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Input:
      properties:
        field:
          anyOf:
            - $ref: >-
                #/components/schemas/SemiStructuredDimension_ConsolidatedDailySpendDimensions_
            - $ref: '#/components/schemas/ConsolidatedDailySpendDimensions'
          title: Field
        not:
          type: boolean
          title: Not
          default: false
        values:
          items:
            anyOf:
              - type: integer
              - type: number
              - type: boolean
              - type: string
              - type: string
                format: date
              - additionalProperties:
                  anyOf:
                    - type: integer
                    - type: number
                    - type: boolean
                    - type: string
                    - type: string
                      format: date
                    - items:
                        anyOf:
                          - type: integer
                          - type: number
                          - type: boolean
                          - type: string
                          - type: string
                            format: date
                          - type: 'null'
                      type: array
                    - type: 'null'
                type: object
              - type: 'null'
          type: array
          title: Values
        operator:
          type: string
          const: array_contains
          title: Operator
      type: object
      required:
        - field
        - values
        - operator
      title: >-
        ArrayContainsFilter[Union[SemiStructuredDimension[ConsolidatedDailySpendDimensions],
        ConsolidatedDailySpendDimensions]]
    IsFilter_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Input:
      properties:
        field:
          anyOf:
            - $ref: >-
                #/components/schemas/SemiStructuredDimension_ConsolidatedDailySpendDimensions_
            - $ref: '#/components/schemas/ConsolidatedDailySpendDimensions'
          title: Field
        not:
          type: boolean
          title: Not
          default: false
        value:
          type: 'null'
          title: Value
        operator:
          type: string
          enum:
            - is
            - is not
          title: Operator
      type: object
      required:
        - field
        - operator
      title: >-
        IsFilter[Union[SemiStructuredDimension[ConsolidatedDailySpendDimensions],
        ConsolidatedDailySpendDimensions]]
    LikeFilter_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Input:
      properties:
        field:
          anyOf:
            - $ref: >-
                #/components/schemas/SemiStructuredDimension_ConsolidatedDailySpendDimensions_
            - $ref: '#/components/schemas/ConsolidatedDailySpendDimensions'
          title: Field
        not:
          type: boolean
          title: Not
          default: false
        value:
          type: string
          title: Value
        operator:
          type: string
          enum:
            - ilike
            - startswith
            - array_contains_prefix
            - array_contains_substring
          title: Operator
      type: object
      required:
        - field
        - value
        - operator
      title: >-
        LikeFilter[Union[SemiStructuredDimension[ConsolidatedDailySpendDimensions],
        ConsolidatedDailySpendDimensions]]
    MultiLikeFilter_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Input:
      properties:
        field:
          anyOf:
            - $ref: >-
                #/components/schemas/SemiStructuredDimension_ConsolidatedDailySpendDimensions_
            - $ref: '#/components/schemas/ConsolidatedDailySpendDimensions'
          title: Field
        not:
          type: boolean
          title: Not
          default: false
        values:
          items:
            type: string
          type: array
          title: Values
        operator:
          type: string
          enum:
            - ilike
            - startswith
          title: Operator
      type: object
      required:
        - field
        - values
        - operator
      title: >-
        MultiLikeFilter[Union[SemiStructuredDimension[ConsolidatedDailySpendDimensions],
        ConsolidatedDailySpendDimensions]]
    InRelativeDateRangeFilter_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Input:
      properties:
        field:
          anyOf:
            - $ref: >-
                #/components/schemas/SemiStructuredDimension_ConsolidatedDailySpendDimensions_
            - $ref: '#/components/schemas/ConsolidatedDailySpendDimensions'
          title: Field
        not:
          type: boolean
          title: Not
          default: false
        value:
          type: string
          title: Value
        operator:
          type: string
          enum:
            - in range
            - not in range
          title: Operator
      type: object
      required:
        - field
        - value
        - operator
      title: >-
        InRelativeDateRangeFilter[Union[SemiStructuredDimension[ConsolidatedDailySpendDimensions],
        ConsolidatedDailySpendDimensions]]
    EqFilter_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Output:
      properties:
        field:
          anyOf:
            - $ref: >-
                #/components/schemas/SemiStructuredDimension_ConsolidatedDailySpendDimensions_
            - $ref: '#/components/schemas/ConsolidatedDailySpendDimensions'
          title: Field
        not:
          type: boolean
          title: Not
          default: false
        value:
          anyOf:
            - type: integer
            - type: number
            - type: boolean
            - type: string
            - type: string
              format: date
            - additionalProperties:
                anyOf:
                  - type: integer
                  - type: number
                  - type: boolean
                  - type: string
                  - type: string
                    format: date
                  - items:
                      anyOf:
                        - type: integer
                        - type: number
                        - type: boolean
                        - type: string
                        - type: string
                          format: date
                        - type: 'null'
                    type: array
                  - type: 'null'
              type: object
            - type: 'null'
          title: Value
        operator:
          type: string
          enum:
            - '>'
            - '>='
            - <
            - <=
            - '='
            - '!='
          title: Operator
      type: object
      required:
        - field
        - value
        - operator
      title: >-
        EqFilter[Union[SemiStructuredDimension[ConsolidatedDailySpendDimensions],
        ConsolidatedDailySpendDimensions]]
    InFilter_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Output:
      properties:
        field:
          anyOf:
            - $ref: >-
                #/components/schemas/SemiStructuredDimension_ConsolidatedDailySpendDimensions_
            - $ref: '#/components/schemas/ConsolidatedDailySpendDimensions'
          title: Field
        not:
          type: boolean
          title: Not
          default: false
        values:
          items:
            anyOf:
              - type: integer
              - type: number
              - type: boolean
              - type: string
              - type: string
                format: date
              - additionalProperties:
                  anyOf:
                    - type: integer
                    - type: number
                    - type: boolean
                    - type: string
                    - type: string
                      format: date
                    - items:
                        anyOf:
                          - type: integer
                          - type: number
                          - type: boolean
                          - type: string
                          - type: string
                            format: date
                          - type: 'null'
                      type: array
                    - type: 'null'
                type: object
              - type: 'null'
          type: array
          title: Values
        operator:
          type: string
          enum:
            - in
            - not in
          title: Operator
      type: object
      required:
        - field
        - values
        - operator
      title: >-
        InFilter[Union[SemiStructuredDimension[ConsolidatedDailySpendDimensions],
        ConsolidatedDailySpendDimensions]]
    ArrayContainsFilter_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Output:
      properties:
        field:
          anyOf:
            - $ref: >-
                #/components/schemas/SemiStructuredDimension_ConsolidatedDailySpendDimensions_
            - $ref: '#/components/schemas/ConsolidatedDailySpendDimensions'
          title: Field
        not:
          type: boolean
          title: Not
          default: false
        values:
          items:
            anyOf:
              - type: integer
              - type: number
              - type: boolean
              - type: string
              - type: string
                format: date
              - additionalProperties:
                  anyOf:
                    - type: integer
                    - type: number
                    - type: boolean
                    - type: string
                    - type: string
                      format: date
                    - items:
                        anyOf:
                          - type: integer
                          - type: number
                          - type: boolean
                          - type: string
                          - type: string
                            format: date
                          - type: 'null'
                      type: array
                    - type: 'null'
                type: object
              - type: 'null'
          type: array
          title: Values
        operator:
          type: string
          const: array_contains
          title: Operator
      type: object
      required:
        - field
        - values
        - operator
      title: >-
        ArrayContainsFilter[Union[SemiStructuredDimension[ConsolidatedDailySpendDimensions],
        ConsolidatedDailySpendDimensions]]
    IsFilter_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Output:
      properties:
        field:
          anyOf:
            - $ref: >-
                #/components/schemas/SemiStructuredDimension_ConsolidatedDailySpendDimensions_
            - $ref: '#/components/schemas/ConsolidatedDailySpendDimensions'
          title: Field
        not:
          type: boolean
          title: Not
          default: false
        value:
          type: 'null'
          title: Value
        operator:
          type: string
          enum:
            - is
            - is not
          title: Operator
      type: object
      required:
        - field
        - operator
      title: >-
        IsFilter[Union[SemiStructuredDimension[ConsolidatedDailySpendDimensions],
        ConsolidatedDailySpendDimensions]]
    LikeFilter_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Output:
      properties:
        field:
          anyOf:
            - $ref: >-
                #/components/schemas/SemiStructuredDimension_ConsolidatedDailySpendDimensions_
            - $ref: '#/components/schemas/ConsolidatedDailySpendDimensions'
          title: Field
        not:
          type: boolean
          title: Not
          default: false
        value:
          type: string
          title: Value
        operator:
          type: string
          enum:
            - ilike
            - startswith
            - array_contains_prefix
            - array_contains_substring
          title: Operator
      type: object
      required:
        - field
        - value
        - operator
      title: >-
        LikeFilter[Union[SemiStructuredDimension[ConsolidatedDailySpendDimensions],
        ConsolidatedDailySpendDimensions]]
    MultiLikeFilter_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Output:
      properties:
        field:
          anyOf:
            - $ref: >-
                #/components/schemas/SemiStructuredDimension_ConsolidatedDailySpendDimensions_
            - $ref: '#/components/schemas/ConsolidatedDailySpendDimensions'
          title: Field
        not:
          type: boolean
          title: Not
          default: false
        values:
          items:
            type: string
          type: array
          title: Values
        operator:
          type: string
          enum:
            - ilike
            - startswith
          title: Operator
      type: object
      required:
        - field
        - values
        - operator
      title: >-
        MultiLikeFilter[Union[SemiStructuredDimension[ConsolidatedDailySpendDimensions],
        ConsolidatedDailySpendDimensions]]
    InRelativeDateRangeFilter_Union_SemiStructuredDimension_ConsolidatedDailySpendDimensions___ConsolidatedDailySpendDimensions__-Output:
      properties:
        field:
          anyOf:
            - $ref: >-
                #/components/schemas/SemiStructuredDimension_ConsolidatedDailySpendDimensions_
            - $ref: '#/components/schemas/ConsolidatedDailySpendDimensions'
          title: Field
        not:
          type: boolean
          title: Not
          default: false
        value:
          type: string
          title: Value
        operator:
          type: string
          enum:
            - in range
            - not in range
          title: Operator
      type: object
      required:
        - field
        - value
        - operator
      title: >-
        InRelativeDateRangeFilter[Union[SemiStructuredDimension[ConsolidatedDailySpendDimensions],
        ConsolidatedDailySpendDimensions]]
    SemiStructuredDimension_ConsolidatedDailySpendDimensions_:
      properties:
        field:
          $ref: '#/components/schemas/ConsolidatedDailySpendDimensions'
        path:
          items:
            type: string
          type: array
          title: Path
      type: object
      required:
        - field
        - path
      title: SemiStructuredDimension[ConsolidatedDailySpendDimensions]
    ConsolidatedDailySpendDimensions:
      type: string
      enum:
        - snowflake_account_name
        - snowflake_org_name
        - usage_group
        - databricks_account_id
        - databricks_workspace_id
        - databricks_workspace_name
        - databricks_sku_name
        - databricks_billing_origin_product
        - connection_id
        - account_metadata
        - connection_type
        - platform_organization
        - bigquery_reservation_labels_map
        - bigquery_reservation_labels
        - bigquery_organization
        - bigquery_billing_export_project
        - bigquery_billing_account
        - region
        - bigquery_edition
        - bigquery_statement_type
        - bigquery_job_type
        - bigquery_pricing_model
        - bigquery_principal_subject
        - bigquery_priority
        - bigquery_job_id
        - bigquery_query_dialect
        - bigquery_state
        - bigquery_error_reason
        - bigquery_admin_project_id
        - bigquery_query_pattern_id
        - bigquery_billed_project
        - bigquery_query_project
        - bigquery_job_labels_map
        - bigquery_storage_project
        - bigquery_storage_dataset
        - bigquery_storage_project_dataset
        - bigquery_storage_billing_model
        - bigquery_storage_class
        - bigquery_storage_attribution
        - platform_instance
        - platform_instance_name
        - bigquery_resource_type
        - bigquery_source_type
        - bigquery_reservation_id
        - account_locator
        - service_level
        - managed_by
        - day
        - day_of_week
        - day_of_month
        - quarter
        - week
        - month
        - resource_type
        - nice_resource_type
        - account_name
        - account_name_and_warehouse
        - usage_type
        - account_name_and_usage_type
        - user_name
        - role_name
        - warehouse_name
        - warehouse_size
        - identifying_metadata
        - database_name
        - schema_name
        - database_schema_name
        - task_database_name
        - task_database_schema_name
        - task_fully_qualified_name
        - stored_procedure_database_name
        - stored_procedure_database_schema_name
        - stored_procedure_fully_qualified_name
        - dynamic_table_database_name
        - dynamic_table_database_schema_name
        - dynamic_table_fully_qualified_name
        - cortex_agent_database_name
        - cortex_agent_database_schema_name
        - cortex_agent_fully_qualified_name
        - cortex_function_models
        - snowpipe_database_name
        - snowpipe_database_schema_name
        - snowpipe_fully_qualified_name
        - snowpipe_streaming_database_name
        - snowpipe_streaming_database_schema_name
        - snowpipe_streaming_fully_qualified_name
        - usage_group_metadata
        - dbt_target_database_schema_name
        - dbt_resource_database_schema_name
        - dbt_node_tags
        - snowflake_intelligence_instance
        - compute_pool_name
        - application_name
        - fivetran_database_schema_name
        - custom_workload_app_workload_id
        - query_type
        - databricks_compute_type
        - databricks_is_serverless
        - databricks_is_photon
        - databricks_jobs_tier
        - databricks_sql_tier
        - databricks_dlt_tier
        - databricks_warehouse_id
        - databricks_cluster_id
        - databricks_job_name
        - databricks_sql_warehouse_name
        - databricks_cluster_name
        - databricks_pipeline_name
        - databricks_node_type
        - databricks_run_as
        - databricks_run_as_is_unresolved
        - databricks_created_by
        - databricks_owned_by
        - databricks_budget_policy_id
        - databricks_model_serving_endpoint_id
        - databricks_model_serving_endpoint_name
        - databricks_app_name
        - databricks_database_instance_id
        - databricks_storage_api_type
        - databricks_networking_client
        - databricks_networking_associated_product
        - databricks_networking_recipient_id
        - databricks_networking_destination_region
        - databricks_networking_source_region
        - databricks_networking_private_endpoint_name
        - databricks_usage_type
        - databricks_notebook_path
        - databricks_data_quality_monitoring_table_id
        - databricks_data_quality_monitoring_schema_id
        - databricks_base_environment_id
        - databricks_data_classification_catalog_id
        - databricks_lakebase_endpoint_id
        - databricks_lakebase_branch_id
        - databricks_lakebase_project_id
        - databricks_data_sharing_materialization_id
        - databricks_lakeflow_connect_table_id
        - databricks_foundation_model_training_run_name
        - databricks_genie_surface
        - databricks_genie_agent_id
        - databricks_compute_resource_data
        - databricks_compute_resource_name
        - databricks_compute_size
        - databricks_warehouse_tags
        - databricks_warehouse_tags_map
        - databricks_cluster_tags
        - databricks_cluster_tags_map
        - databricks_job_tags
        - databricks_job_tags_map
        - databricks_pipeline_tags
        - databricks_pipeline_tags_map
        - databricks_query_tags_map
        - spend
        - is_adjustment
        - base_databases_accessed
        - base_schemas_accessed
        - base_tables_accessed
        - base_tables_accessed_csv
        - databases_modified
        - schemas_modified
        - tables_modified
        - tables_modified_csv
        - warehouse_tags
        - warehouse_tags_map
        - user_tags
        - user_tags_map
        - role_tags
        - role_tags_map
        - database_tags
        - database_tags_map
        - object_database_tags
        - object_database_tags_map
        - object_schema_tags
        - object_schema_tags_map
        - object_name_tags
        - object_name_tags_map
        - object_level_tags
        - object_level_tags_map
  responses:
    BadRequest:
      description: Bad request
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetail'
    Unauthorized:
      description: Unauthorized
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetail'
      headers:
        WWW-Authenticate:
          description: Authentication challenge for the requested resource.
          required: true
          schema:
            type: string
    Forbidden:
      description: Forbidden
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetail'
    NotFound:
      description: Not found
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetail'
    MethodNotAllowed:
      description: Method not allowed
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetail'
      headers:
        Allow:
          description: HTTP methods supported by the requested resource.
          required: true
          schema:
            type: string
    RequestTimeout:
      description: Request Timeout
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetail'
    Conflict:
      description: Conflict
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetail'
    PreconditionFailed:
      description: Precondition failed
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetail'
    ValidationFailed:
      description: Validation failed
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetail'
    PreconditionRequired:
      description: Precondition required
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetail'
    RateLimited:
      description: Rate limited
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetail'
      headers:
        Retry-After:
          description: Number of seconds to wait before retrying the request.
          required: true
          schema:
            type: integer
            minimum: 0
    InternalError:
      description: Internal error
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetail'
    ServiceUnavailable:
      description: Service unavailable
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetail'
      headers:
        Retry-After:
          description: Number of seconds to wait before retrying the request.
          required: true
          schema:
            type: integer
            minimum: 0
  securitySchemes:
    HTTPBearer:
      type: http
      description: Organization API key (sl_…).
      scheme: bearer

````