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

# Edit transit connection BGP manual advertise CIDRs

> POST /v2/api/edit_transit_connection_bgp_manual_advertise_cidrs



## OpenAPI

````yaml /openapi/10.1/aviatrix-api.json post /v2/api/edit_transit_connection_bgp_manual_advertise_cidrs
openapi: 3.1.0
info:
  title: Aviatrix Controller API
  version: '10.1'
  description: >-
    Aviatrix Controller API — version 10.1. Selected operations with Mintlify
    metadata.
servers: []
security: []
tags:
  - name: policies
    x-group: Policies
  - name: authentication
    x-group: Authentication
  - name: account-management
    x-group: Account Management
  - name: rbac
    x-group: RBAC & Permissions
  - name: gateways
    x-group: Gateways
  - name: transit
    x-group: Transit
  - name: nat
    x-group: NAT
  - name: app-domains
    x-group: SmartGroups
  - name: certificates
    x-group: Certificates
  - name: mitm
    x-group: MITM
  - name: monitoring
    x-group: Monitoring & Diagnostics
  - name: fqdn
    x-group: FQDN
  - name: logging
    x-group: Logging
  - name: vpn
    x-group: UserVPN
  - name: site-to-cloud
    x-group: Site-to-Cloud
  - name: controller
    x-group: Controller
  - name: bgp
    x-group: BGP
  - name: general
    x-group: General
  - name: firenet
    x-group: FireNet
  - name: networking
    x-group: Networking
  - name: tgw
    x-group: AWS TGW
  - name: ips
    x-group: IPS
  - name: saml
    x-group: SAML
paths:
  /v2/api/edit_transit_connection_bgp_manual_advertise_cidrs:
    post:
      tags:
        - bgp
      operationId: edit_transit_connection_bgp_manual_advertise_cidrs
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CID:
                  $ref: '#/components/schemas/CID'
                action:
                  $ref: '#/components/schemas/action'
                active_standby:
                  $ref: '#/components/schemas/StringToggle'
                  description: Enable/Disable Transit gateway in active-standby mode.
                active_standby_preemptive:
                  description: >-
                    Enable/Disable Transit gateway in active-standby preemptive
                    mode.
                  type: boolean
                active_standby_switchover:
                  description: Force switch over.
                  type: string
                advertise_transit_cidr:
                  $ref: '#/components/schemas/StringToggle'
                  description: Advertise Transit CIDR.
                approved_learned_cidrs:
                  description: Approved learned CIDRs.
                  type: string
                approved_learned_cidrs_csv_file:
                  description: Approved learned CIDRs csv file.
                  type: string
                bfd_multiplier:
                  description: BGP BFD detect multiplier for the connection.
                  type: integer
                bfd_rx_intv:
                  description: BGP BFD receive interval (ms) for the connection.
                  type: integer
                bfd_tx_intv:
                  description: BGP BFD transmit interval (ms) for the connection.
                  type: integer
                bgp_auto_refresh:
                  $ref: '#/components/schemas/StringToggle'
                  description: Edit BGP auto refresh.
                bgp_ecmp:
                  $ref: '#/components/schemas/StringToggle'
                  description: Enable/Disable BGP route ECMP.
                bgp_manual_spoke_advertise_cidrs:
                  description: BGP Manual Spoke Advertise CIDRs.
                  type: string
                bgp_manual_spoke_advertise_cidrs_csv_file:
                  description: BGP Manual Spoke Advertise CIDRs csv file.
                  type: string
                bgp_md5_key:
                  description: Change BGP MD5 Key.
                  type: string
                bgp_multihop:
                  description: Connection multihop value.
                  type: boolean
                bgp_prepend_as_path:
                  description: Gateway based BGP Prepend AS Path.
                  type: string
                bgp_remote_ip:
                  description: BGP remote ip.
                  type: string
                cidr_approval_mode:
                  description: Cidr approval mode.
                  enum:
                    - connection
                    - gateway
                  type: string
                configured_learned_cidr:
                  description: Edit static learned cidr.
                  type: string
                conn_approved_cidr_rules:
                  description: Connection Approved CIDR rules.
                  type: string
                conn_approved_learned_cidrs:
                  description: Connection Approved learned CIDRs.
                  type: string
                conn_approved_learned_cidrs_csv_file:
                  description: Connection Approved learned CIDRs csv file.
                  type: string
                conn_bgp_bfd:
                  description: Whether to enable BFD on this connection.
                  type: boolean
                conn_bgp_manual_advertise_cidrs_csv_file:
                  description: Connection BGP Manual Advertise CIDRs csv file.
                  type: string
                conn_bgp_prepend_as_path:
                  description: Connection based BGP Prepend AS Path.
                  type: string
                conn_bgp_send_communities:
                  description: Connection based additional BGP communities to be sent.
                  type: string
                conn_bgp_send_communities_additive:
                  description: Do additive operation instead of replacement operation.
                  type: string
                conn_bgp_send_communities_block:
                  description: >-
                    Block advertisement of any BGP communities on this
                    connection.
                  type: string
                conn_learned_cidrs_approval:
                  $ref: '#/components/schemas/StringToggle'
                  description: Connection Learned cidrs approval (deprecated).
                conn_pending_learned_cidrs:
                  description: Connection Pending learned CIDRs.
                  type: string
                conn_pending_learned_cidrs_csv_file:
                  description: Connection Pending learned CIDRs csv file.
                  type: string
                connected_transit:
                  $ref: '#/components/schemas/StringToggle'
                  description: Connected transit to build a full mesh spoke networks.
                connection_bgp_manual_advertise_cidrs:
                  description: Connection BGP Manual Advertise CIDRs.
                  type: string
                connection_name:
                  description: Connection name.
                  type: string
                customize_transit_vpc_route:
                  description: Edit customized transit VPC route.
                  type: string
                del_csv_file:
                  $ref: '#/components/schemas/StringToggle'
                  description: Delete input csv file.
                disable_route_propagation:
                  $ref: '#/components/schemas/StringToggle'
                  description: >-
                    Enable/Disable BGP spoke onprem route from propagating to
                    attached transit.
                edge_routing:
                  $ref: '#/components/schemas/StringToggle'
                  description: Enabled/Disable edge spoke transitive routing.
                edit_bgp_multihop:
                  description: Edit connection BGP multihop.
                  type: boolean
                edit_conn_bgp_bfd:
                  description: Edit connection BFD parameters.
                  type: boolean
                enable_conn_cidr_approval:
                  $ref: '#/components/schemas/StringToggle'
                  description: Connection Learned cidrs approval.
                enable_gw_cidr_approval:
                  $ref: '#/components/schemas/StringToggle'
                  description: Enable / Disable route approval at gateway level.
                gateway_name:
                  description: Gateway name.
                  type: string
                global_vpc:
                  $ref: '#/components/schemas/StringToggle'
                  description: Configure GCE global vpc feature.
                gre_keepalive_timeout:
                  description: Configure GRE keepalive timeout 0(disable), or 8-86400s.
                  type: string
                gw_approved_cidr_rules:
                  description: GW Approved CIDR rules.
                  type: string
                learned_cidrs_approval:
                  $ref: '#/components/schemas/StringToggle'
                  description: Learned cidrs approval (deprecated).
                learned_cidrs_approval_mode:
                  description: Learned cidrs approval mode (deprecated).
                  enum:
                    - connection
                    - gateway
                  type: string
                local_asn_num:
                  description: Local ASN Number.
                  type: string
                multitier_transit:
                  $ref: '#/components/schemas/StringToggle'
                  description: Enable or disable Multi-Tier Transit.
                pending_learned_cidrs:
                  description: Pending learned CIDRs.
                  type: string
                pending_learned_cidrs_csv_file:
                  description: Pending learned CIDRs csv file.
                  type: string
                preserve_as_path:
                  $ref: '#/components/schemas/StringToggle'
                  description: Preserve as_path when advertise manual summary cidrs.
                s2c_rx_balancing:
                  $ref: '#/components/schemas/StringToggle'
                  description: Enable/Disable S2C Receive Packet Balancing.
                show:
                  description: Show gateway info.
                  type: boolean
                show_bgp_auto_refresh:
                  description: Show BGP auto refresh configuration.
                  type: boolean
                show_cidr_approval_info:
                  description: Show gateway cidr approval info.
                  type: boolean
                show_cidrs_approval_info:
                  description: Show gateway learned cidrs info (deprecated).
                  type: boolean
                show_learned_cidrs_list:
                  description: Show gateway learned cidrs list (deprecated).
                  type: boolean
                show_route_cache:
                  description: Show gateway route cache.
                  type: boolean
                summarize_cidr_to_tgw:
                  $ref: '#/components/schemas/StringToggle'
                  description: Enable or disable summarization when propagate to TGW.
              required:
                - gateway_name
                - connection_name
              type: object
        required: true
      responses:
        '200':
          $ref: '#/components/responses/general_response_v2'
        default:
          $ref: '#/components/responses/general_response_v2'
      security:
        - SessionKey: []
      x-codeSamples:
        - lang: curl
          label: cURL
          source: >-
            curl -sk -X POST
            "https://<controller>/v2/api/edit_transit_connection_bgp_manual_advertise_cidrs"
            \
              -H "Authorization: cid <CID>"
        - lang: python
          label: Python
          source: >-
            import requests


            url =
            "https://<controller>/v2/api/edit_transit_connection_bgp_manual_advertise_cidrs"

            headers = {"Authorization": "cid <CID>"}


            response = requests.post(url, headers=headers, verify=False)

            print(response.status_code)

            print(response.text)
        - lang: javascript
          label: JavaScript
          source: >-
            fetch("https://<controller>/v2/api/edit_transit_connection_bgp_manual_advertise_cidrs",
            {
              method: "POST",
              headers: {"Authorization": "cid <CID>"}
            })
              .then(res => res.text())
              .then(console.log)
              .catch(console.error);
        - lang: go
          label: Go
          source: |-
            package main

            import (
              "fmt"
              "net/http"
            )

            func main() {
              req, _ := http.NewRequest("POST", "https://<controller>/v2/api/edit_transit_connection_bgp_manual_advertise_cidrs", nil)
              req.Header.Set("Authorization", "cid <CID>")

              client := &http.Client{}
              resp, err := client.Do(req)
              if err != nil {
                panic(err)
              }
              defer resp.Body.Close()

              fmt.Println(resp.Status)
            }
components:
  schemas:
    CID:
      description: The opaque session ID token. Required for 7.2 controllers only.
      type: string
    action:
      description: The API action to perform. Required for 7.2 controllers only.
      type: string
    StringToggle:
      description: A boolean choice expressed as a string
      enum:
        - 'yes'
        - 'no'
      type: string
    general_response_v2:
      additionalProperties: true
      description: A generic API response container for v2 style APIs.
      properties:
        errortype:
          description: Error type if the API failed.
          type: string
        reason:
          description: Failure reason if the API failed.
          type: string
        results:
          oneOf:
            - description: API response data
              type: boolean
            - description: API response data
              type: integer
            - description: API response data
              type: string
            - description: API response data
              type: object
            - description: API response data
              items: {}
              type: array
        return:
          description: Whether the API returned successfully
          type: boolean
      title: General Response v2
      type: object
  responses:
    general_response_v2:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/general_response_v2'
      description: General v2 API response schema.

````