{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clearstreet8e71/json-schema/clearstreet8e71-create-feedback-request-schema.json",
  "title": "CreateFeedbackRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clearstreet8e71-omni-ai-api-openapi.yml#/components/schemas/CreateFeedbackRequest",
  "type": "object",
  "required": [
    "score"
  ],
  "properties": {
    "account_id": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "Optional selection. Feedback always uses the thread's linked account.",
      "minimum": 1
    },
    "comment": {
      "type": "string",
      "description": "Optional feedback comment"
    },
    "metadata": {
      "type": [
        "object",
        "null"
      ],
      "description": "Optional metadata"
    },
    "score": {
      "type": "integer",
      "format": "int32",
      "description": "Feedback score (-1, 0, +1 or 1-5)."
    }
  }
}