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

# Release a legal hold

> What erasures left waiting under the hold goes once it is released.



## OpenAPI

````yaml openapi/en/cell.json POST /v1/legal-holds/{hold_id}/release
openapi: 3.1.0
info:
  title: Niadra data API
  version: '1'
  description: >-
    Writing, context, history, objects, identity, privacy and governance of one
    space. Every space has a stable address, with the space and the region in
    its name.
servers:
  - url: https://{space}.{region}.api.niadra.com
    variables:
      space:
        default: acme-prod
        description: The space, which comes in the source key.
      region:
        default: us-east-2
        description: The region of the space, which also comes in the key.
security: []
paths:
  /v1/legal-holds/{hold_id}/release:
    post:
      tags:
        - signals
      summary: Release a legal hold
      description: >-
        What erasures left waiting under the hold goes once it is released.


        **Authentication.** Console person token with the `security` role (or
        admin), or a source key with the `admin` scope. It answers only in a
        space with the `legal_holds` feature on (the `features` document); in a
        space without it, 404.
      operationId: release_legal_hold_v1_legal_holds__hold_id__release_post
      parameters:
        - in: path
          name: hold_id
          required: true
          schema:
            title: Hold Id
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LegalHoldRelease'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegalHold'
          description: Successful Response
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security:
        - sourceKey: []
        - personToken: []
components:
  schemas:
    LegalHoldRelease:
      additionalProperties: false
      properties:
        reason:
          maxLength: 500
          minLength: 1
          title: Reason
          type: string
      required:
        - reason
      title: LegalHoldRelease
      type: object
    LegalHold:
      additionalProperties: false
      properties:
        created_at:
          format: date-time
          title: Created At
          type: string
        hold_id:
          maxLength: 512
          minLength: 1
          title: Hold Id
          type: string
        released_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Released At
        scope:
          enum:
            - handle
            - object
            - conversation
          title: Scope
          type: string
        status:
          enum:
            - active
            - released
          title: Status
          type: string
      required:
        - hold_id
        - scope
        - status
        - created_at
      title: LegalHold
      type: object
    Problem:
      additionalProperties: false
      description: RFC 9457 problem details; `code` comes from the versioned error catalog.
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Detail
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          default: about:blank
          title: Type
          type: string
      required:
        - title
        - status
        - code
      title: Problem
      type: object
  securitySchemes:
    sourceKey:
      type: http
      scheme: bearer
      description: nia_sk_...
    personToken:
      type: http
      scheme: bearer
      bearerFormat: JWT

````