{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-fraud-detector/json-schema/amazon-fraud-detector-send-event-request-schema.json",
  "title": "SendEventRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-fraud-detector-event-api-openapi.yml#/components/schemas/SendEventRequest",
  "type": "object",
  "properties": {
    "eventId": {
      "type": "string",
      "description": "The event ID to upload."
    },
    "eventTypeName": {
      "type": "string",
      "description": "The event type name of the event."
    },
    "eventTimestamp": {
      "type": "string",
      "description": "The timestamp that defines when the event under evaluation occurred. The timestamp must be specified using ISO 8601 standard in UTC."
    },
    "eventVariables": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Names of the event type's variables you defined in Amazon Fraud Detector to represent data elements and their corresponding values for the event you are sending for evaluation."
    },
    "assignedLabel": {
      "type": "string",
      "description": "The label to associate with the event. Required if specifying labelTimestamp."
    },
    "labelTimestamp": {
      "type": "string",
      "description": "The timestamp associated with the label. Required if specifying assignedLabel."
    },
    "entities": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Entity"
      },
      "description": "An array of entities."
    }
  },
  "required": [
    "eventId",
    "eventTypeName",
    "eventTimestamp",
    "eventVariables",
    "entities"
  ],
  "$defs": {
    "Entity": {
      "type": "object",
      "properties": {
        "entityType": {
          "type": "string",
          "description": "The entity type."
        },
        "entityId": {
          "type": "string",
          "description": "The entity ID. If you do not know the entityId, you can pass unknown, which is areserved string literal."
        }
      },
      "required": [
        "entityType",
        "entityId"
      ]
    }
  }
}