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

# Org Update Billing Settings

> Update an org's billing settings: billing email, auto-reload
thresholds and amount, default payment method. Owner-only.



## OpenAPI

````yaml /openapi.json put /api/organizations/{org_id}/billing/settings
openapi: 3.1.0
info:
  description: >-
    Public CodeCobra API. Authenticate by sending a personal API key in the
    `Authorization: Bearer <key>` header. Generate keys from Settings → API keys
    in the CodeCobra dashboard.
  title: CodeCobra Public API
  version: 1.0.0
servers: []
security: []
paths:
  /api/organizations/{org_id}/billing/settings:
    put:
      tags:
        - public
      summary: Org Update Billing Settings
      description: |-
        Update an org's billing settings: billing email, auto-reload
        thresholds and amount, default payment method. Owner-only.
      operationId: >-
        org_update_billing_settings_api_organizations__org_id__billing_settings_put
      parameters:
        - in: path
          name: org_id
          required: true
          schema:
            format: uuid
            title: Org Id
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OrganizationBillingSettingsRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema: {}
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    OrganizationBillingSettingsRequest:
      properties:
        auto_reload_amount:
          anyOf:
            - type: number
            - type: 'null'
          title: Auto Reload Amount
        auto_reload_enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Auto Reload Enabled
        auto_reload_threshold:
          anyOf:
            - type: number
            - type: 'null'
          title: Auto Reload Threshold
        billing_email:
          anyOf:
            - type: string
            - type: 'null'
          title: Billing Email
        default_payment_method_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Default Payment Method Id
      title: OrganizationBillingSettingsRequest
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http

````