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

# Submit replica identity decisions

> Resolve tables that need an identity decision

If Ardent reports tables that need a decision, submit a table-to-decision map:

```json theme={null}
{
  "decisions": {
    "public.audit_events": "exclude",
    "public.invoice_line_items": "replica_identity_full"
  }
}
```

Decision values:

| Value                   | Meaning                                                                  |
| ----------------------- | ------------------------------------------------------------------------ |
| `exclude`               | Do not replicate this table yet                                          |
| `add_pk`                | You will add a primary key or valid unique key on source before retrying |
| `replica_identity_full` | Opt into `REPLICA IDENTITY FULL` for this table                          |

The map is a full replace: tables you omit revert to `exclude`.


## OpenAPI

````yaml openapi.public.json PUT /v1/connectors/{connector_id}/replica-identity-decisions
openapi: 3.1.0
info:
  description: >-
    Public Ardent API. Generated by scripts/export_public_openapi.py — do not
    edit by hand.
  title: Ardent API
  version: v1
servers:
  - url: https://api.tryardent.com
security: []
paths:
  /v1/connectors/{connector_id}/replica-identity-decisions:
    put:
      tags:
        - v1-connectors
      summary: Set Replica Identity Decisions Endpoint
      operationId: >-
        set_replica_identity_decisions_endpoint_v1_connectors__connector_id__replica_identity_decisions_put
      parameters:
        - in: path
          name: connector_id
          required: true
          schema:
            title: Connector Id
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReplicaIdentityDecisionsRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectorRow'
          description: The refreshed connector row, including `replica_identity_preflight`.
        '400':
          description: >-
            A decision is invalid, covers an unknown table, or the map is
            incomplete.
        '403':
          description: No update permission on this connector.
        '404':
          description: Connector not found (or not visible to the caller).
        '409':
          description: >-
            The decisions could not be applied — state changed underneath;
            retry.
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - bearerAuth: []
components:
  schemas:
    ReplicaIdentityDecisionsRequest:
      properties:
        decisions:
          additionalProperties:
            type: string
          description: 'Per-table decision: `exclude`, `add_pk`, or `replica_identity_full`.'
          title: Decisions
          type: object
      required:
        - decisions
      title: ReplicaIdentityDecisionsRequest
      type: object
    ConnectorRow:
      additionalProperties: true
      properties:
        can_delete:
          anyOf:
            - type: boolean
            - type: 'null'
          description: Whether the caller may delete this connector.
          title: Can Delete
        can_update:
          anyOf:
            - type: boolean
            - type: 'null'
          description: Whether the caller may update this connector.
          title: Can Update
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          description: When the connector was created.
          title: Created At
        id:
          description: Connector ID.
          title: Id
          type: string
        name:
          description: Connector name.
          title: Name
          type: string
        org_id:
          description: Organization the connector belongs to.
          title: Org Id
          type: string
        project_id:
          anyOf:
            - type: string
            - type: 'null'
          description: Project the connector belongs to.
          title: Project Id
        service_name:
          description: Service type. `postgresql` today.
          title: Service Name
          type: string
        status:
          anyOf:
            - type: string
            - type: 'null'
          description: Current connector status.
          title: Status
      required:
        - id
        - org_id
        - name
        - service_name
      title: ConnectorRow
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    bearerAuth:
      description: >-
        Ardent API key (sk-ard_live_… / sk-ard_test_…) or a dashboard session
        token.
      scheme: bearer
      type: http

````