Method
upsertData POST
Copy POST

Update new data into the feature group for a given lookup key record ID if the record ID is found; otherwise, insert new data into the feature group.

Arguments:

REQUIRED KEY TYPE DESCRIPTION
Yes featureGroupId str A unique string identifier of the online feature group to record data to.
Yes data dict The data to record, in JSON format.
No streamingToken str Optional streaming token for authenticating requests if upserting to streaming FG.
No blobs dict A dictionary of binary data to populate file fields' in data to upsert to the streaming FG.
Note: The arguments for the API methods follow camelCase but for Python SDK underscore_case is followed.

Response:

KEY TYPE DESCRIPTION
success Boolean true if the call succeeded, false if there was an error
result FeatureGroupRow
KEY TYPE Description
featureGroupId str The ID of the feature group this row belongs to.
primaryKey str Value of the primary key for this row.
createdAt str The timestamp this feature group row was created in ISO-8601 format.
updatedAt str The timestamp when this feature group row was last updated in ISO-8601 format.
contents dict A dictionary of feature names and values for this row.

Exceptions:

TYPE WHEN
DataNotFoundError

featureGroupId is not found.

Language: