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

# Update Contact Center

## Overview

The "Update Contact Center" endpoint allows users to modify existing contact center configurations in Toingg. By sending a POST request to the `/update_twilio` endpoint, users can update various attributes of their contact center, such as the Twilio account SID, authentication token, and phone number. This functionality is essential for maintaining accurate and effective contact center integrations, ensuring that communication capabilities remain efficient and aligned with user needs. The endpoint supports updates to enhance the contact center's performance and alignment with evolving business requirements.

#### Example cURL Request

```bash theme={null}
curl -X 'POST' \
  'https://api.toingg.com/api/v3/update_twilio' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'
  -H 'Content-Type: application/json' \
  -d '{
  "twilioAccountSid": "string",
  "twilioAuthToken": "string",
  "twilioPhoneNumber": "string",
  "voiceProvider": "TWILIO"
}'
```


## OpenAPI

````yaml POST /update_twilio
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.toingg.com/api/v3
security: []
paths:
  /update_twilio:
    post:
      tags:
        - Twilio handling
      summary: Update Twilio
      operationId: update_twilio_update_twilio_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/twilioAccountModel'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2PasswordBearer: []
components:
  schemas:
    twilioAccountModel:
      properties:
        twilioAccountSid:
          type: string
          title: Twilioaccountsid
        twilioAuthToken:
          type: string
          title: Twilioauthtoken
        twilioPhoneNumber:
          type: string
          title: Twiliophonenumber
        voiceProvider:
          $ref: '#/components/schemas/voiceProviderType'
          default: TWILIO
      type: object
      required:
        - twilioAccountSid
        - twilioAuthToken
        - twilioPhoneNumber
      title: twilioAccountModel
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    voiceProviderType:
      type: string
      enum:
        - TWILIO
        - PLIVO
      title: voiceProviderType
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: login

````