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

# Update Configuration

> Rename a configuration or rotate its credentials

The `provider` cannot be changed once a configuration exists — create a new configuration if you need to switch providers.

When rotating credentials, you only need to send the fields you're changing. Re-submitting a masked sensitive value preserves the original secret, so it's safe to round-trip a `GET` response back to a `PUT`.


## OpenAPI

````yaml PUT /api/v1/organizations/telephony-configs/{config_id}
openapi: 3.1.0
info:
  title: Bandwidth Agent Builder API
  version: v1
  description: >-
    Manage agents, place calls, and retrieve conversation results in your
    workspace.
servers:
  - url: https://agents.labs.bandwidth.com
    description: Workspace API
security: []
paths:
  /api/v1/organizations/telephony-configs/{config_id}:
    put:
      tags:
        - telephony-configs
      summary: Update Configuration
      description: Rename a configuration or rotate its credentials
      operationId: >-
        update_telephony_configuration_api_v1_organizations_telephony_configs__config_id__put
      parameters:
        - name: config_id
          in: path
          required: true
          schema:
            type: integer
            title: Config Id
        - name: X-VOAI-ORGANIZATION-ID
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Voai-Organization-Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TelephonyConfigurationUpdateRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TelephonyConfigurationDetail'
        '404':
          description: Not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - LabsAuth: []
        - LabsApiKey: []
components:
  schemas:
    TelephonyConfigurationUpdateRequest:
      properties:
        name:
          anyOf:
            - type: string
              maxLength: 64
              minLength: 1
            - type: 'null'
          title: Name
        config:
          anyOf:
            - oneOf:
                - $ref: '#/components/schemas/BandwidthConfigurationRequest'
                - $ref: '#/components/schemas/JambonzConfigurationRequest'
                - $ref: '#/components/schemas/TelnyxConfigurationRequest'
                - $ref: '#/components/schemas/TwilioConfigurationRequest'
              discriminator:
                propertyName: provider
                mapping:
                  bandwidth:
                    $ref: '#/components/schemas/BandwidthConfigurationRequest'
                  jambonz:
                    $ref: '#/components/schemas/JambonzConfigurationRequest'
                  telnyx:
                    $ref: '#/components/schemas/TelnyxConfigurationRequest'
                  twilio:
                    $ref: '#/components/schemas/TwilioConfigurationRequest'
            - type: 'null'
          title: Config
      type: object
      title: TelephonyConfigurationUpdateRequest
    TelephonyConfigurationDetail:
      properties:
        id:
          type: integer
          title: Id
        name:
          type: string
          title: Name
        provider:
          type: string
          title: Provider
        is_default_outbound:
          type: boolean
          title: Is Default Outbound
        credentials:
          additionalProperties: true
          type: object
          title: Credentials
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - name
        - provider
        - is_default_outbound
        - credentials
        - created_at
        - updated_at
      title: TelephonyConfigurationDetail
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BandwidthConfigurationRequest:
      properties:
        provider:
          type: string
          const: bandwidth
          title: Provider
          default: bandwidth
        account_id:
          type: string
          title: Account Id
        application_id:
          type: string
          title: Application Id
        client_id:
          type: string
          title: Client Id
        client_secret:
          type: string
          title: Client Secret
        webhook_username:
          type: string
          title: Webhook Username
        webhook_password:
          type: string
          title: Webhook Password
        from_numbers:
          items:
            type: string
          type: array
          title: From Numbers
      type: object
      required:
        - account_id
        - application_id
        - client_id
        - client_secret
        - webhook_username
        - webhook_password
      title: BandwidthConfigurationRequest
    JambonzConfigurationRequest:
      properties:
        provider:
          type: string
          const: jambonz
          title: Provider
          default: jambonz
        api_base_url:
          type: string
          title: Api Base Url
        account_sid:
          type: string
          title: Account Sid
        api_key:
          type: string
          title: Api Key
        webhook_secret:
          anyOf:
            - type: string
            - type: 'null'
          title: Webhook Secret
        application_sid:
          anyOf:
            - type: string
            - type: 'null'
          title: Application Sid
        from_numbers:
          items:
            type: string
          type: array
          title: From Numbers
      type: object
      required:
        - api_base_url
        - account_sid
        - api_key
      title: JambonzConfigurationRequest
    TelnyxConfigurationRequest:
      properties:
        provider:
          type: string
          const: telnyx
          title: Provider
          default: telnyx
        api_key:
          type: string
          title: Api Key
        connection_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Connection Id
        webhook_public_key:
          anyOf:
            - type: string
            - type: 'null'
          title: Webhook Public Key
        from_numbers:
          items:
            type: string
          type: array
          title: From Numbers
      type: object
      required:
        - api_key
      title: TelnyxConfigurationRequest
    TwilioConfigurationRequest:
      properties:
        provider:
          type: string
          const: twilio
          title: Provider
          default: twilio
        account_sid:
          type: string
          title: Account Sid
        auth_token:
          type: string
          title: Auth Token
        from_numbers:
          items:
            type: string
          type: array
          title: From Numbers
      type: object
      required:
        - account_sid
        - auth_token
      title: TwilioConfigurationRequest
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    LabsAuth:
      type: http
      scheme: bearer
    LabsApiKey:
      type: apiKey
      in: header
      name: X-BW-LABS-AGENTS-API-KEY

````