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

# Update Replication

> Updates an existing Big Peer replication's configuration.



## OpenAPI

````yaml /ditto-server/operator/operator-api-spec.json put /namespace/{namespace}/bigPeer/{big_peer_name}/app/{app_name}/bigPeerReplication/{replication_name}
openapi: 3.1.0
info:
  title: Operator Management API
  description: A RESTful API that allows users to manage Big Peer apps and API keys.
  license:
    name: Ditto Binary License
    identifier: Ditto Binary License
  version: 1.0.0
servers:
  - url: http://localhost:{port}
    description: Local server
    variables:
      port:
        default: '8080'
security: []
tags:
  - name: App
    description: Big Peer apps API endpoints
  - name: API Keys
    description: Big Peer HTTP API keys
  - name: Data Bridge
    description: Apps' data bridges (CDC)
paths:
  /namespace/{namespace}/bigPeer/{big_peer_name}/app/{app_name}/bigPeerReplication/{replication_name}:
    patch:
      tags:
        - Apps
        - BigPeerReplication
      summary: Update Replication
      description: Updates an existing Big Peer replication's configuration.
      operationId: updateReplication
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateBigPeerReplicationRequest'
        required: true
      responses:
        '200':
          description: Big Peer replication successfully updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BigPeerReplication'
        '400':
          description: bad request
          content:
            application/json:
              examples:
                AppNameMismatch:
                  summary: >-
                    app in big peer replication label doesn't match uri
                    parameter
        '404':
          description: big peer replication not found
          content:
            application/json:
              examples:
                BigPeerReplicationNotFound:
                  summary: big peer replication not found
components:
  schemas:
    UpdateBigPeerReplicationRequest:
      type: object
      properties:
        connections:
          type:
            - array
            - 'null'
          items:
            type: string
            format: uri
          example:
            - big-peer-2.ditto.svc.cluster.local:4040
          uniqueItems: true
        queriesByCollection:
          type:
            - object
            - 'null'
          additionalProperties:
            type: array
            items:
              type: string
          propertyNames:
            type: string
          example:
            cars:
              - 'true'
    BigPeerReplication:
      type: object
      required:
        - name
      properties:
        connections:
          type:
            - array
            - 'null'
          items:
            type: string
            format: uri
          description: >-
            A set of connection addresses of other Big Peer instances.


            Each connection address should point to the Big Peer replication
            server dedicated to the

            same app ID.


            The set is allowed to be empty. In this case, it's the remote Big
            Peer's responsibility to

            initiate the connection.
          example:
            - big-peer-2.ditto.svc.cluster.local:4040
          uniqueItems: true
        name:
          type: string
          title: Dns1123Label
          description: >-
            RFC 1123 DNS labels used for most Kubernetes resource names.  Some
            resource types require their names to follow the DNS label standard
            as defined in [RFC 1123][rfc1123].
                         This means the name must:
                            * contain at most 63 characters * contain only lowercase alphanumeric characters or '-' * start with an alphanumeric character
                            * end with an alphanumeric character
                        [rfc1123]: https://tools.ietf.org/html/rfc1123
          maxLength: 63
          minLength: 1
          pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
        queriesByCollection:
          type:
            - object
            - 'null'
          description: >-
            Mapping from collection name to a list of DQL subscriptions queries.

            This contains the data that the Big Peer instance will subscribe to,
            for the given app, in

            the context of Big Peer replication.

            If empty, this Big Peer instance will not subscribe to any data so
            no data will be

            replicated to it.
          additionalProperties:
            type: array
            items:
              type: string
          propertyNames:
            type: string
          example:
            cars:
              - 'true'

````