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

# Liberar uma retenção legal

> O que os apagamentos deixaram esperando sob a retenção segue assim que ela é liberada.



## OpenAPI

````yaml openapi/pt/cell.json POST /v1/legal-holds/{hold_id}/release
openapi: 3.1.0
info:
  title: API de dados da Niadra
  version: '1'
  description: >-
    Escrita, contexto, histórico, objetos, identidade, privacidade e governança
    de um espaço. Cada espaço tem um endereço estável, com o espaço e a região
    no nome.
servers:
  - url: https://{space}.{region}.api.niadra.com
    variables:
      space:
        default: acme-prod
        description: O espaço, que vem na chave de fonte.
      region:
        default: us-east-2
        description: A região do espaço, que também vem na chave.
security: []
paths:
  /v1/legal-holds/{hold_id}/release:
    post:
      tags:
        - signals
      summary: Liberar uma retenção legal
      description: >-
        O que os apagamentos deixaram esperando sob a retenção segue assim que
        ela é liberada.


        **Autenticação.** Token de pessoa do Console com o papel `security` (ou
        admin), ou chave de fonte com o escopo `admin`. Só responde num espaço
        com a funcionalidade `legal_holds` ligada (o documento `features`); num
        espaço sem ela, 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: Resposta de sucesso.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: O pedido não bate com o contrato.
      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: >-
        Detalhes do problema no formato da RFC 9457; `code` vem do catálogo de
        erros versionado.
      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

````