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

> A person with the `security` role clears content the scan flagged or holds, with a reason and a receipt; the object's reads serve it from then on.



## OpenAPI

````yaml openapi/en/cell.json POST /v1/content/{ref}/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/content/{ref}/release:
    post:
      tags:
        - state
      summary: Release content
      description: >-
        A person clears content the scan flagged or holds, with a reason and a
        receipt; the object's reads

        serve it from then on.


        **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 `state` feature on (the `features` document); in a space
        without it, 404.
      operationId: release_content_v1_content__ref__release_post
      parameters:
        - in: path
          name: ref
          required: true
          schema:
            title: Ref
            type: string
          description: >-
            The object's id, the field and the content's digest, as the
            `content` marker of the field names them.
        - in: header
          name: Idempotency-Key
          required: true
          schema:
            maxLength: 256
            minLength: 1
            title: Idempotency-Key
            type: string
          description: >-
            Required. Kept 24 hours with the hash of the body: a retry with the
            same key returns the first answer, and the same key with a different
            body returns 409 `conflict`.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContentRelease'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentReleaseResult'
          description: >-
            Whether something was released; false when the content was already
            clean.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security:
        - sourceKey: []
        - personToken: []
components:
  schemas:
    ContentRelease:
      additionalProperties: false
      properties:
        reason:
          maxLength: 500
          minLength: 1
          title: Reason
          type: string
      required:
        - reason
      title: ContentRelease
      type: object
    ContentReleaseResult:
      additionalProperties: false
      properties:
        released:
          title: Released
          type: boolean
      required:
        - released
      title: ContentReleaseResult
      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

````