{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/commareports-com/json-schema/commareports-com-reviewer-create-request-schema.json",
  "title": "ReviewerCreateRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/commareports-com-reviewers-api-openapi.yml#/components/schemas/ReviewerCreateRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 200,
      "description": "Defaults to 'Untitled reviewer'."
    },
    "reviewer_url": {
      "type": "string",
      "format": "uri",
      "maxLength": 2048,
      "description": "http(s) endpoint that receives ReviewRequest payloads."
    },
    "report_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "Pin to one report (requires edit access) or null for owner-wide."
    },
    "reviewer_auth_header": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 1024,
      "description": "Sent as the Authorization header to reviewer_url. Encrypted at rest; never returned."
    },
    "prompt": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 8000
    },
    "enabled": {
      "type": "boolean",
      "default": true
    },
    "auto_on_revision": {
      "type": "boolean",
      "default": true
    }
  },
  "required": [
    "reviewer_url"
  ]
}