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

# Bulk Freeze Members

> Freeze each selected member using the existing single-member freeze flow.



## OpenAPI

````yaml post /inventory/members/bulk-freeze
openapi: 3.1.0
info:
  title: Decoda API
  description: External API documentation for the Decoda Health platform.
  version: '1.0'
servers: []
security: []
paths:
  /inventory/members/bulk-freeze:
    post:
      tags:
        - Memberships
      summary: Bulk Freeze Members
      description: >-
        Freeze each selected member using the existing single-member freeze
        flow.
      operationId: bulk_freeze_members_inventory_members_bulk_freeze_post
      parameters:
        - name: TENANT
          in: header
          required: true
          schema:
            type: string
            title: Tenant
          description: The tenant you are making this request on behalf of
        - name: API-KEY
          in: header
          required: true
          schema:
            type: string
            title: Api-Key
          description: Your api key
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MemberBulkFreezeRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkActionResult'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    MemberBulkFreezeRequest:
      properties:
        memberIds:
          items:
            type: string
          type: array
          minItems: 1
          title: Memberids
          description: IDs of members to freeze
        reason:
          type: string
          title: Reason
          description: Reason for freezing the memberships
        freezeDate:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Freezedate
          description: >-
            When to automatically freeze each member (if None, freezes
            immediately)
        unfreezeDate:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Unfreezedate
          description: When to automatically unfreeze each member
      type: object
      required:
        - memberIds
        - reason
      title: MemberBulkFreezeRequest
      description: >-
        Bulk freeze request - applies the same freeze window to each selected
        member.
    BulkActionResult:
      properties:
        succeeded:
          type: integer
          title: Succeeded
          description: Number of members the action succeeded for
          default: 0
        skipped:
          type: integer
          title: Skipped
          description: Number of members that were skipped (no-op, e.g. not delinquent)
          default: 0
        failed:
          items:
            $ref: '#/components/schemas/BulkActionFailure'
          type: array
          title: Failed
          description: Per-member failures with reasons
      type: object
      title: BulkActionResult
      description: Aggregate result for a bulk action that fans out per-member.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BulkActionFailure:
      properties:
        memberId:
          type: string
          title: Memberid
          description: ID of the member that failed
        reason:
          type: string
          title: Reason
          description: Human-readable reason for the failure
      type: object
      required:
        - memberId
        - reason
      title: BulkActionFailure
      description: A single per-member failure inside a bulk action result.
    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

````