> ## 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.

# Block Member

> Block a member.  Returns 201 for a new block, 200 if the block already existed.



## OpenAPI

````yaml /openapi/mio-openapi.json put /api/v1/contact-auth/me/hubs/{hub_id}/privacy/blocked-members/{blocked_contact_id}
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/blocked-members/{blocked_contact_id}:
    put:
      tags:
        - member-privacy
      summary: Block Member
      description: >-
        Block a member.  Returns 201 for a new block, 200 if the block already
        existed.
      operationId: >-
        member_privacy.put_member_privacy_put_contact_auth_me_hubs_by_hub_id_privacy_blocked_members_by_blocked_contact_id
      parameters:
        - in: path
          name: hub_id
          required: true
          schema:
            title: Hub Id
            type: string
        - in: path
          name: blocked_contact_id
          required: true
          schema:
            title: Blocked Contact Id
            type: string
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/BlockResponse'
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    BlockResponse:
      description: JSON:API single-resource response for PUT /blocked-members/{id}.
      properties:
        data:
          $ref: '#/components/schemas/BlockData'
      required:
        - data
      title: BlockResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    BlockData:
      description: JSON:API data object for a member_blocks resource.
      properties:
        attributes:
          $ref: '#/components/schemas/BlockAttributes'
        id:
          title: Id
          type: string
        type:
          const: member_blocks
          title: Type
          type: string
      required:
        - type
        - id
        - attributes
      title: BlockData
      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
    BlockAttributes:
      description: Attributes section of a member_blocks resource.
      properties:
        blocked_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Blocked At
        contact_id:
          title: Contact Id
          type: string
        display_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Display Name
        photo_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Photo Url
      required:
        - contact_id
      title: BlockAttributes
      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

````