{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cm-com/main/json-schema/cm-com-feedback-score-response-schema.json",
  "title": "FeedbackScoreResponse",
  "description": "Response returned after creating or updating a feedback score.",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cm-com-halo-analytics-v1-openapi.yml#/components/schemas/FeedbackScoreResponse",
  "type": "object",
  "required": [
    "id",
    "conversation_id",
    "score",
    "product_source",
    "created"
  ],
  "properties": {
    "comment": {
      "type": [
        "string",
        "null"
      ],
      "description": "Optional comment from the user explaining their score"
    },
    "conversation_id": {
      "type": "string",
      "format": "uuid",
      "description": "The conversation ID for this feedback score"
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "description": "When the feedback score was created"
    },
    "id": {
      "type": "integer",
      "format": "int32",
      "description": "The unique identifier of the feedback score"
    },
    "interaction_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "The specific interaction ID within the conversation (optional)"
    },
    "product_source": {
      "type": "string",
      "description": "The product source where the feedback was submitted"
    },
    "profile_id": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "description": "The profile ID associated with this feedback (null if not provided)"
    },
    "score": {
      "type": "integer",
      "format": "int32",
      "description": "The feedback score (e.g., 1-5 rating)"
    }
  }
}