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

# Change BGP announces

> Enable or disable BGP announces for a client.



## OpenAPI

````yaml /api-reference/services_docs_mintlify/ddos_protection_api.yaml post /security/sifter/v2/protected_addresses/announces
openapi: 3.1.0
info:
  title: Gcore OpenAPI – DDoS Protection API
  description: >-
    This OpenAPI is an aggregated OpenAPI specification that unifies all Gcore
    products into a single file. It covers Cloud, CDN, DNS, WAAP, DDoS
    Protection, Object Storage, Streaming, and FastEdge services.
  version: 8330487fea25
servers:
  - url: https://api.gcore.com
security:
  - APIKey: []
tags:
  - name: BGP announces
  - name: Event Logs
  - name: Profiles
  - name: Protected Networks
  - name: Protection Profiles
  - name: Protection Templates
  - name: Templates
paths:
  /security/sifter/v2/protected_addresses/announces:
    post:
      tags:
        - BGP announces
      summary: Change BGP announces
      description: Enable or disable BGP announces for a client.
      operationId: change_announces_api_v2_protected_addresses_announces_post
      parameters:
        - name: client_id
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
                maximum: 1000000000
                minimum: 1
              - type: 'null'
            description: A positive integer ID
            title: Client Id
          description: A positive integer ID
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AnnounceIn'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                title: >-
                  Response Change Announces Api V2 Protected Addresses Announces
                  Post
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Request'
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Request'
          description: Forbidden
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AnnounceIn:
      properties:
        announce:
          type: string
          format: ipvanynetwork
          title: Announce
          description: IP network to announce
          example: 192.9.9.1/32
          examples:
            - 192.9.9.1/32
        enabled:
          type: boolean
          title: Enabled
          description: Whether the announcement is enabled
          example: true
          examples:
            - true
      type: object
      required:
        - announce
        - enabled
      title: AnnounceIn
      example:
        announce: 192.9.9.1/32
        enabled: true
    Request:
      properties: {}
      type: object
      title: Request
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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:
    APIKey:
      description: >-
        API key for authentication. Make sure to include the word `apikey`,
        followed by a single space and then your token.

        Example: `apikey 1234$abcdef`
      type: apiKey
      in: header
      name: Authorization

````