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

# Update privacy config for organization



## OpenAPI

````yaml /api-reference/openapi.json patch /v1/privacy/config
openapi: 3.1.0
info:
  title: Feather API
  description: >-
    Unified customer experience platform API. Manages identity, conversations,
    memory, agents, procedures, policies, model routing, knowledge bases,
    integrations, and runtime execution.
  version: 1.21.0
servers:
  - url: https://api-sandbox.featherhq.com
    description: Sandbox
  - url: http://localhost:8000
    description: Local dev
security: []
paths:
  /v1/privacy/config:
    patch:
      tags:
        - privacy
      summary: Update privacy config for organization
      operationId: updatePrivacyConfig
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PrivacyConfigUpdate'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PrivacyConfigResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    PrivacyConfigUpdate:
      properties:
        pii_scrubbing_enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Pii Scrubbing Enabled
        scrub_types:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Scrub Types
        custom_deny_patterns:
          anyOf:
            - items:
                $ref: '#/components/schemas/CustomDenyPattern'
              type: array
              maxItems: 128
            - type: 'null'
          title: Custom Deny Patterns
        custom_allow_patterns:
          anyOf:
            - items:
                $ref: '#/components/schemas/CustomAllowPattern'
              type: array
              maxItems: 128
            - type: 'null'
          title: Custom Allow Patterns
        score_threshold:
          anyOf:
            - type: number
              maximum: 1
              minimum: 0
            - type: 'null'
          title: Score Threshold
        audio_scrubbing_enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Audio Scrubbing Enabled
        audio_retention_policy:
          anyOf:
            - type: string
              enum:
                - transcript_only
                - redacted_audio_retained
                - raw
            - type: 'null'
          title: Audio Retention Policy
        audio_redaction_fill:
          anyOf:
            - type: string
              enum:
                - silence
                - tone_1khz
            - type: 'null'
          title: Audio Redaction Fill
        supported_languages:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Supported Languages
        default_language:
          anyOf:
            - type: string
            - type: 'null'
          title: Default Language
        language_detection_enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Language Detection Enabled
      type: object
      title: PrivacyConfigUpdate
    PrivacyConfigResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        organization_id:
          type: string
          format: uuid
          title: Organization Id
        pii_scrubbing_enabled:
          type: boolean
          title: Pii Scrubbing Enabled
        scrub_types:
          items:
            type: string
          type: array
          title: Scrub Types
        custom_deny_patterns:
          items:
            $ref: '#/components/schemas/CustomDenyPattern'
          type: array
          title: Custom Deny Patterns
        custom_allow_patterns:
          items:
            $ref: '#/components/schemas/CustomAllowPattern'
          type: array
          title: Custom Allow Patterns
        score_threshold:
          type: number
          title: Score Threshold
        audio_scrubbing_enabled:
          type: boolean
          title: Audio Scrubbing Enabled
        audio_retention_policy:
          type: string
          title: Audio Retention Policy
        audio_redaction_fill:
          type: string
          title: Audio Redaction Fill
        supported_languages:
          items:
            type: string
          type: array
          title: Supported Languages
        default_language:
          type: string
          title: Default Language
        language_detection_enabled:
          type: boolean
          title: Language Detection Enabled
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - organization_id
        - pii_scrubbing_enabled
        - scrub_types
        - custom_deny_patterns
        - custom_allow_patterns
        - score_threshold
        - audio_scrubbing_enabled
        - audio_retention_policy
        - audio_redaction_fill
        - supported_languages
        - default_language
        - language_detection_enabled
        - created_at
        - updated_at
      title: PrivacyConfigResponse
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
        message:
          type: string
          title: Message
      type: object
      required:
        - error
        - message
      title: ErrorResponse
      description: Standard error response returned by all API error handlers.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CustomDenyPattern:
      properties:
        name:
          type: string
          maxLength: 64
          minLength: 1
          pattern: ^[a-z][a-z0-9_]*$
          title: Name
        regex:
          type: string
          maxLength: 1024
          minLength: 1
          title: Regex
        replacement_label:
          type: string
          maxLength: 64
          minLength: 1
          pattern: ^[A-Z][A-Z0-9_]*$
          title: Replacement Label
        description:
          anyOf:
            - type: string
              maxLength: 256
            - type: 'null'
          title: Description
        score:
          type: number
          maximum: 1
          minimum: 0
          title: Score
          description: >-
            Presidio confidence reported for matches of this pattern. Must be >=
            the org's score_threshold, otherwise Presidio silently drops every
            match and the pattern appears broken.
          default: 0.85
      type: object
      required:
        - name
        - regex
        - replacement_label
      title: CustomDenyPattern
      description: Regex pattern that should be treated as PII and redacted.
    CustomAllowPattern:
      properties:
        name:
          type: string
          maxLength: 64
          minLength: 1
          pattern: ^[a-z][a-z0-9_]*$
          title: Name
        regex:
          type: string
          maxLength: 1024
          minLength: 1
          title: Regex
        description:
          anyOf:
            - type: string
              maxLength: 256
            - type: 'null'
          title: Description
      type: object
      required:
        - name
        - regex
      title: CustomAllowPattern
      description: Regex pattern that suppresses PII detections (false-positive filter).
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````