PutRecord - Amazon SageMaker


Used for data ingestion into the FeatureStore. The PutRecord API writes to both the OnlineStore and OfflineStore. If the record is the latest record for the recordIdentifier, the record is written to both the OnlineStore and OfflineStore. If the record is a historic record, it is written only to the OfflineStore.

Request Syntax

PUT /FeatureGroup/FeatureGroupName HTTP/1.1 Content-type: application/json { "Record": [ { "FeatureName": "string", "ValueAsString": "string" } ], "TargetStores": [ "string" ] }

URI Request Parameters

The request uses the following URI parameters.


The name of the feature group that you want to insert the record into.

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: ^[a-zA-Z0-9]([-_]*[a-zA-Z0-9]){0,63}

Required: Yes

Request Body

The request accepts the following data in JSON format.


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.

Type: Array of FeatureValue objects

Array Members: Minimum number of 1 item.

Required: Yes


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.

Type: Array of strings

Array Members: Minimum number of 1 item. Maximum number of 2 items.

Valid Values: OnlineStore | OfflineStore

Required: No

Response Syntax

HTTP/1.1 200

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.


For information about the errors that are common to all actions, see Common Errors.


You do not have permission to perform an action.

HTTP Status Code: 403


An internal failure occurred. Try your request again. If the problem persists, contact AWS customer support.

HTTP Status Code: 500


The service is currently unavailable.

HTTP Status Code: 503


There was an error validating your request.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: