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

# Update a Flow Builder connection (PUT)

> Updates a connection. Send `••••••` for a secret in `auth_config` to keep the stored value; changing `auth_type` drops the keys of the previous type. Administrator access is required.



## OpenAPI

````yaml /openapi/application.json put /api/v1/accounts/{account_id}/flow_builder/connections/{id}
openapi: 3.1.0
info:
  title: WiseApp API — Aplicação
  description: >-
    Referência completa da API do WiseApp: plataforma (provisionamento),
    aplicação (conta), cliente (canais públicos) e MCP.
  version: 1.1.0
servers:
  - url: https://chat.wiseapp360.com
    description: Sua instalação WiseApp
security: []
paths:
  /api/v1/accounts/{account_id}/flow_builder/connections/{id}:
    parameters:
      - $ref: '#/components/parameters/account_id'
        schema:
          type: string
        example: sample
      - name: id
        in: path
        required: true
        description: Connection identifier.
        schema:
          type: integer
        example: 3
    put:
      tags:
        - Flow Builder
      summary: Update a Flow Builder connection (PUT)
      description: >-
        Updates a connection. Send `••••••` for a secret in `auth_config` to
        keep the stored value; changing `auth_type` drops the keys of the
        previous type. Administrator access is required.
      operationId: update-flow-builder-connection-put
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/flow_builder_connection_payload'
            examples:
              rename_keep_secret:
                summary: Rename and keep the stored token
                value:
                  connection:
                    name: Orders API (production)
                    auth_config:
                      token: ••••••
              rotate_token:
                summary: Rotate the bearer token
                value:
                  connection:
                    auth_type: bearer
                    auth_config:
                      token: REPLACE_WITH_NEW_API_TOKEN
      responses:
        '200':
          description: Connection updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/flow_builder_connection'
              example:
                id: 3
                name: Orders API
                auth_type: bearer
                auth_config:
                  token: ••••••
                headers:
                  Accept: application/json
                base_url: https://api.example.com/v1
                created_at: '2026-10-20T09:30:00Z'
                updated_at: '2026-10-20T09:30:00Z'
        '401':
          description: >-
            Unauthenticated, not a member of the account, or not an account
            administrator (Flow Builder is administrator-only).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/flow_builder_error'
              example:
                error: You are not authorized to do this action
        '403':
          description: The Flow Builder feature is not enabled for this account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/flow_builder_error'
              example:
                error: Flow Builder is not enabled for this account
        '404':
          description: Resource not found in the account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/flow_builder_error'
              example:
                error: Resource could not be found
        '422':
          description: Validation failed or the request body is missing its root key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/flow_builder_record_invalid_error'
              example:
                message: Validation failed
                attributes:
                  - name cannot be blank
      security:
        - userApiKey: []
components:
  parameters:
    account_id:
      in: path
      name: account_id
      schema:
        type: integer
      required: true
      description: The numeric ID of the account
  schemas:
    flow_builder_connection_payload:
      type: object
      required:
        - connection
      properties:
        connection:
          type: object
          properties:
            name:
              type: string
              maxLength: 100
              description: Connection name, unique within the account. Required on create.
              example: Orders API
            base_url:
              type:
                - string
                - 'null'
              description: >-
                Base http(s) URL without user or password. Required unless
                `auth_type` is `none`.
              example: https://api.example.com/v1
            auth_type:
              type: string
              enum:
                - none
                - bearer
                - basic
                - api_key
              default: none
              example: bearer
            auth_config:
              type: object
              additionalProperties: true
              description: >
                Keys by `auth_type`: bearer → `token`; basic → `username`,
                `password`; api_key → `name` (header name) and `key`.

                Keys of other types are dropped. Send `••••••` for a secret to
                keep the value already stored.
              example:
                token: REPLACE_WITH_API_TOKEN
            headers:
              type: object
              additionalProperties:
                type: string
              description: >-
                Default headers sent with every request. Values cannot contain
                variables and credentials belong in `auth_config`.
              example:
                Accept: application/json
    flow_builder_connection:
      type: object
      description: >
        Saved API access reused by HTTP request blocks. Secret values in
        `auth_config` (`token`, `password`, `key`) are

        always returned masked as `••••••`; sending the mask back on update
        keeps the stored value.
      required:
        - id
        - name
        - auth_type
        - auth_config
        - headers
      properties:
        id:
          type: integer
          description: Connection identifier.
          example: 3
        name:
          type: string
          maxLength: 100
          description: Connection name, unique within the account.
          example: Orders API
        base_url:
          type:
            - string
            - 'null'
          description: >-
            Base http(s) URL. HTTP request blocks using the connection send
            paths under it.
          example: https://api.example.com/v1
        auth_type:
          type: string
          enum:
            - none
            - bearer
            - basic
            - api_key
          description: Authentication sent with every request.
          example: bearer
        auth_config:
          type: object
          additionalProperties: true
          description: >-
            Authentication values for the `auth_type` (`token` for bearer,
            `username` and `password` for basic, `name` and `key` for api_key).
            Secrets are masked.
          example:
            token: ••••••
        headers:
          type: object
          additionalProperties:
            type: string
          description: >-
            Default headers sent with every request. Values cannot contain
            variables.
          example:
            Accept: application/json
        created_at:
          type: string
          format: date-time
          example: '2026-10-20T09:30:00Z'
        updated_at:
          type: string
          format: date-time
          example: '2026-10-20T09:30:00Z'
    flow_builder_error:
      type: object
      description: >-
        Error returned by Flow Builder endpoints when the feature is disabled,
        the user is not authorized or the resource is missing.
      required:
        - error
      properties:
        error:
          type: string
          description: Human-readable error message.
          example: Flow Builder is not enabled for this account
    flow_builder_record_invalid_error:
      type: object
      description: >-
        Validation error returned when a record cannot be saved, published or
        tested.
      required:
        - message
        - attributes
      properties:
        message:
          type: string
          description: Full validation messages joined by commas.
          example: Name has already been taken
        attributes:
          type: array
          description: Attributes that failed validation.
          items:
            type: string
          example:
            - name
  securitySchemes:
    userApiKey:
      type: apiKey
      in: header
      name: api_access_token
      description: >-
        Token de acesso do usuário (Perfil → Token de acesso). Dá acesso
        conforme o papel do usuário e age em nome dele.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.