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

# Update company configuration

> Updates one or more configuration fields for the authenticated company.



## OpenAPI

````yaml /api-reference/openapi.json put /api/v1/company/config
openapi: 3.0.0
info:
  title: PlugToPay API
  description: API to make payments easy in multiple gateways.
  version: 1.0.0
servers:
  - url: http://localhost:7701
    description: Test Server
security: []
paths:
  /api/v1/company/config:
    put:
      tags:
        - Company
      summary: Update company configuration
      description: Updates one or more configuration fields for the authenticated company.
      operationId: 481f4fd5f7f2c4e4c95b09925f2f2b56
      parameters:
        - $ref: '#/components/parameters/XClientId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              properties:
                time_to_wait_sync:
                  type: number
                  format: float
                  maximum: 30
                  minimum: 0.5
                  example: 6
                default_response:
                  type: string
                  enum:
                    - sync
                    - async
                  example: sync
                retry_failed_payments:
                  type: boolean
                  example: false
                max_retry_attempt:
                  type: integer
                  maximum: 20
                  minimum: 0
                  example: 1
              type: object
      responses:
        '200':
          description: Configuration updated
        '401':
          description: Unauthorized
        '404':
          description: Configuration not found
        '422':
          description: Validation Error
      security:
        - ApiKeyAuth: []
components:
  parameters:
    XClientId:
      name: x-client-id
      in: header
      description: Client identifier for the company in the request.
      required: true
      schema:
        type: string
        example: client_abc123
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      description: Company API key. Send in the X-API-Key header.
      name: X-API-Key
      in: header

````