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

# Registrar vereditos

> Correto, errado ou faltou, por item de uma amostra.



## OpenAPI

````yaml openapi/pt/cell.json POST /v1/review/{sample_id}/verdicts
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-1
        description: A região do espaço, que também vem na chave.
security: []
paths:
  /v1/review/{sample_id}/verdicts:
    post:
      tags:
        - governance
      summary: Registrar vereditos
      description: >-
        Registra os vereditos de um revisor sobre uma amostra: `correct`,
        `wrong` ou `missing` para um fato, `holds` ou `does_not_hold` para um
        sinal da medição ou um padrão. Só uma pessoa com o papel review pode
        chamar, nunca uma chave de fonte. O veredito não muda a memória sozinho:
        um fato errado sai por `POST /v1/feedback`, um padrão errado pela
        retirada dele.


        **Autenticação.** Só token de pessoa do Console, com o papel `review`
        (ou admin). Chave de fonte não é aceita.
      operationId: review_verdicts_v1_review__sample_id__verdicts_post
      parameters:
        - in: path
          name: sample_id
          required: true
          schema:
            format: uuid
            title: Sample Id
            type: string
          example: 0192f7d0-6e41-7b5c-8d6e-7f8091a2b3c4
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VerdictsRequest'
            example:
              verdicts:
                - target: fact
                  target_id: 0192f7a2-5d10-7a8e-b1c4-3f6e8d9a0b12
                  verdict: correct
                - target: signal
                  target_id: sig_01J8ZL
                  verdict: holds
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VerdictsResponse'
              example:
                sample_id: 0192f7d0-6e41-7b5c-8d6e-7f8091a2b3c4
                recorded: 2
                reviewed_at: '2026-09-22T18:20:00Z'
          description: Os vereditos foram registrados.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: O pedido não bate com o contrato.
      security:
        - personToken: []
components:
  schemas:
    VerdictsRequest:
      additionalProperties: false
      properties:
        verdicts:
          items:
            $ref: '#/components/schemas/VerdictIn'
          maxItems: 200
          minItems: 1
          title: Verdicts
          type: array
      required:
        - verdicts
      title: VerdictsRequest
      type: object
    VerdictsResponse:
      additionalProperties: false
      properties:
        recorded:
          title: Recorded
          type: integer
        reviewed_at:
          format: date-time
          title: Reviewed At
          type: string
        sample_id:
          format: uuid
          title: Sample Id
          type: string
      required:
        - sample_id
        - recorded
        - reviewed_at
      title: VerdictsResponse
      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
    VerdictIn:
      additionalProperties: false
      properties:
        target:
          $ref: '#/components/schemas/TargetKind'
        target_id:
          maxLength: 512
          minLength: 1
          title: Target Id
          type: string
        verdict:
          maxLength: 32
          minLength: 1
          title: Verdict
          type: string
      required:
        - target
        - target_id
        - verdict
      title: VerdictIn
      type: object
    TargetKind:
      enum:
        - fact
        - signal
        - trait
      title: TargetKind
      type: string
  securitySchemes:
    personToken:
      type: http
      scheme: bearer
      bearerFormat: JWT

````