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

# Record a review decision



## OpenAPI

````yaml /api-reference/openapi.json post /api/approvals/{approval_id}/decide
openapi: 3.1.0
info:
  title: WriterzRoom API
  version: '2.0'
  description: >-
    Generated from the API server by scripts/generate_api_reference.py. Only the
    endpoints listed on the Endpoints Reference page are included.
servers:
  - url: https://api.writerzroom.com
security:
  - bearerAuth: []
tags:
  - name: Generation
  - name: Content
  - name: Catalog
  - name: Approvals
  - name: Validity
  - name: Replay
  - name: Artifacts
  - name: Corpus
  - name: Account
paths:
  /api/approvals/{approval_id}/decide:
    post:
      tags:
        - Approvals
      summary: Record a review decision
      operationId: decide_api_approvals__approval_id__decide_post
      parameters:
        - name: approval_id
          in: path
          required: true
          schema:
            type: string
            title: Approval Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DecisionRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - bearerAuth: []
components:
  schemas:
    DecisionRequest:
      properties:
        status:
          type: string
          minLength: 1
          title: Status
          description: '`approved`, `rejected`, `changes_requested` or `waived`.'
        notes:
          anyOf:
            - type: string
            - type: 'null'
          title: Notes
          description: The reviewer's notes.
        review_hash:
          anyOf:
            - type: string
              maxLength: 64
              minLength: 64
            - type: 'null'
          title: Review Hash
          description: >-
            The `review_hash` of the asset you reviewed. A decision on a version
            that has since changed is refused.
        evidence_requests:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Evidence Requests
          description: >-
            Substantiation wanted before approval: objects with `claim_text`,
            `source_index` and `note`.
        reason_code:
          anyOf:
            - type: string
              maxLength: 64
            - type: 'null'
          title: Reason Code
          description: >-
            Required for rejected, changes_requested and waived:
            `unsupported_claim`, `missing_evidence`, `inaccurate_statement`,
            `missing_disclosure`, `regulatory_risk`, `brand_or_tone`,
            `not_applicable` or `other`.
      type: object
      required:
        - status
      title: DecisionRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A WriterzRoom API key.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.