{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-sagemaker/json-schema/amazon-sagemaker-put-record-request-schema.json",
  "title": "PutRecordRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-sagemaker-feature-group-api-openapi.yml#/components/schemas/PutRecordRequest",
  "type": "object",
  "properties": {
    "FeatureGroupName": {
      "type": "string",
      "description": "The name or Amazon Resource Name (ARN) of the feature group that you want to insert the record into."
    },
    "Record": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FeatureValue"
      },
      "description": "List of FeatureValues to be inserted. This will be a full over-write. If you only want to update few of the feature values, do the following: Use GetRecord to retrieve the latest record. Update the record returned from GetRecord. Use PutRecord to update feature values."
    },
    "TargetStores": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "OnlineStore",
          "OfflineStore"
        ]
      },
      "description": "A list of stores to which you're adding the record. By default, Feature Store adds the record to all of the stores that you're using for the FeatureGroup."
    },
    "TtlDuration": {
      "$ref": "#/$defs/FeaturestoreRuntimeSagemakerTtlDuration"
    }
  },
  "required": [
    "FeatureGroupName",
    "Record"
  ],
  "$defs": {
    "FeatureValue": {
      "type": "object",
      "properties": {
        "FeatureName": {
          "type": "string",
          "description": "The name of a feature that a feature value corresponds to."
        },
        "ValueAsString": {
          "type": "string",
          "description": "The value in string format associated with a feature. Used when your CollectionType is None. Note that features types can be String, Integral, or Fractional. This value represents all three types as a string."
        },
        "ValueAsStringList": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of values in string format associated with a feature. Used when your CollectionType is a List, Set, or Vector. Note that features types can be String, Integral, or Fractional. These values represents all three types as a string."
        }
      },
      "required": [
        "FeatureName"
      ]
    },
    "FeaturestoreRuntimeSagemakerTtlDuration": {
      "type": "object",
      "properties": {
        "Unit": {
          "type": "string",
          "enum": [
            "Seconds",
            "Minutes",
            "Hours",
            "Days",
            "Weeks"
          ],
          "description": "TtlDuration time unit."
        },
        "Value": {
          "type": "integer",
          "description": "TtlDuration time value."
        }
      },
      "required": [
        "Unit",
        "Value"
      ]
    }
  }
}