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

# Patch Privacy



## OpenAPI

````yaml /openapi/mio-openapi.json patch /api/v1/contact-auth/me/hubs/{hub_id}/privacy
openapi: 3.1.0
info:
  description: >-
    Production API reference for Membership.io. Use the authored guides for
    workflows and the generated endpoint pages for exact parameters and schemas.
  title: Membership.io API
  version: 0.1.0
servers:
  - description: Production
    url: https://api.member.dev
security:
  - bearerAuth: []
paths:
  /api/v1/contact-auth/me/hubs/{hub_id}/privacy:
    patch:
      tags:
        - member-privacy
      summary: Patch Privacy
      operationId: >-
        member_privacy.patch_member_privacy_patch_contact_auth_me_hubs_by_hub_id_privacy
      parameters:
        - in: path
          name: hub_id
          required: true
          schema:
            title: Hub Id
            type: string
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/PrivacySettingsResponse'
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    PrivacySettingsResponse:
      description: JSON:API single-resource response for GET/PATCH /privacy.
      properties:
        data:
          $ref: '#/components/schemas/PrivacySettingsData'
        meta:
          $ref: '#/components/schemas/PrivacySettingsMeta'
      required:
        - data
        - meta
      title: PrivacySettingsResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    PrivacySettingsData:
      description: JSON:API data object for a member_privacy_settings resource.
      properties:
        attributes:
          $ref: '#/components/schemas/PrivacySettingsAttributes'
        id:
          title: Id
          type: string
        type:
          const: member_privacy_settings
          title: Type
          type: string
      required:
        - type
        - id
        - attributes
      title: PrivacySettingsData
      type: object
    PrivacySettingsMeta:
      description: Top-level meta for member privacy responses.
      properties:
        scope:
          default: hub
          title: Scope
          type: string
      title: PrivacySettingsMeta
      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
    PrivacySettingsAttributes:
      description: Attributes section of the member_privacy_settings resource.
      properties:
        blocked_count:
          title: Blocked Count
          type: integer
        dm_enabled:
          title: Dm Enabled
          type: boolean
        hide_profile:
          title: Hide Profile
          type: boolean
        read_receipts_enabled:
          title: Read Receipts Enabled
          type: boolean
      required:
        - hide_profile
        - dm_enabled
        - read_receipts_enabled
        - blocked_count
      title: PrivacySettingsAttributes
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT or mio_sk API key
      description: >-
        Send platform JWTs, contact JWTs, or team API keys as `Authorization:
        Bearer <token>`.
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````