Stay organized with collections
Save and categorize content based on your preferences.
Full name: projects.locations.featureOnlineStores.featureViews.directWrite
Bidirectional streaming RPC to directly write to feature values in a feature view. Requests may not have a one-to-one mapping to responses and responses may be returned out-of-order to reduce latency.
Endpoint
post
https://{service-endpoint}/v1/{featureView}:directWrite
The error only applies to the listed data keys - the stream will remain open for further [FeatureOnlineStoreService.FeatureViewDirectWriteRequest][] requests.
Partial failures (e.g. if the first 10 keys of a request fail, but the rest succeed) from a single request may result in multiple responses - there will be one response for the successful request keys and one response for the failing request keys.
Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-26 UTC."],[],[],null,["**Full name**: projects.locations.featureOnlineStores.featureViews.directWrite\n\nBidirectional streaming RPC to directly write to feature values in a feature view. Requests may not have a one-to-one mapping to responses and responses may be returned out-of-order to reduce latency. \n\nEndpoint post `https:``/``/{service-endpoint}``/v1``/{featureView}:directWrite` \nWhere `{service-endpoint}` is one of the [supported service endpoints](/vertex-ai/docs/reference/rest#rest_endpoints).\n\nPath parameters `featureView` `string` \nFeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`\n\nRequest body\n\nThe request body contains data with the following structure:\nFields `dataKeyAndFeatureValues[]` `object (`[DataKeyAndFeatureValues](/vertex-ai/docs/reference/rest/v1/projects.locations.featureOnlineStores.featureViews/directWrite#DataKeyAndFeatureValues)`)` \nRequired. The data keys and associated feature values. \n\nResponse body Response message for [FeatureOnlineStoreService.FeatureViewDirectWrite](/vertex-ai/docs/reference/rest/v1/projects.locations.featureOnlineStores.featureViews/directWrite#google.cloud.aiplatform.v1.FeatureOnlineStoreService.FeatureViewDirectWrite).\n\nIf successful, the response body contains data with the following structure:\nFields `status` `object (`[Status](/vertex-ai/docs/reference/rest/Shared.Types/ListOperationsResponse#Status)`)` \nResponse status for the keys listed in [FeatureViewDirectWriteResponse.write_responses](/vertex-ai/docs/reference/rest/v1/projects.locations.featureOnlineStores.featureViews/directWrite#body.FeatureViewDirectWriteResponse.FIELDS.write_responses).\n\nThe error only applies to the listed data keys - the stream will remain open for further \\[FeatureOnlineStoreService.FeatureViewDirectWriteRequest\\]\\[\\] requests.\n\nPartial failures (e.g. if the first 10 keys of a request fail, but the rest succeed) from a single request may result in multiple responses - there will be one response for the successful request keys and one response for the failing request keys.\n`writeResponses[]` `object (`[WriteResponse](/vertex-ai/docs/reference/rest/v1/projects.locations.featureOnlineStores.featureViews/directWrite#WriteResponse)`)` \nDetails about write for each key. If status is not OK, [WriteResponse.data_key](/vertex-ai/docs/reference/rest/v1/projects.locations.featureOnlineStores.featureViews/directWrite#WriteResponse.FIELDS.data_key) will have the key with error, but [WriteResponse.online_store_write_time](/vertex-ai/docs/reference/rest/v1/projects.locations.featureOnlineStores.featureViews/directWrite#WriteResponse.FIELDS.online_store_write_time) will not be present. \n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"status\": { object (/vertex-ai/docs/reference/rest/Shared.Types/ListOperationsResponse#Status) }, \"writeResponses\": [ { object (/vertex-ai/docs/reference/rest/v1/projects.locations.featureOnlineStores.featureViews/directWrite#WriteResponse) } ] } ``` |\n\nDataKeyAndFeatureValues \nA data key and associated feature values to write to the feature view.\nFields `dataKey` `object (`[FeatureViewDataKey](/vertex-ai/docs/reference/rest/v1/FeatureViewDataKey)`)` \nThe data key.\n`features[]` `object (`[Feature](/vertex-ai/docs/reference/rest/v1/projects.locations.featureOnlineStores.featureViews/directWrite#Feature)`)` \nList of features to write. \n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"dataKey\": { object (/vertex-ai/docs/reference/rest/v1/FeatureViewDataKey) }, \"features\": [ { object (/vertex-ai/docs/reference/rest/v1/projects.locations.featureOnlineStores.featureViews/directWrite#Feature) } ] } ``` |\n\nFeature \nfeature name \\& value pair.\nFields `name` `string` \nfeature short name. \n`data_oneof` `Union type` \nFeature value data to write. `data_oneof` can be only one of the following:\n`value` `object (`[FeatureValue](/vertex-ai/docs/reference/rest/v1/FeatureValue)`)` \nfeature value. A user provided timestamp may be set in the `FeatureValue.metadata.generate_time` field. \n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, // data_oneof \"value\": { object (/vertex-ai/docs/reference/rest/v1/FeatureValue) } // Union type } ``` |\n\nWriteResponse \nDetails about the write for each key.\nFields `dataKey` `object (`[FeatureViewDataKey](/vertex-ai/docs/reference/rest/v1/FeatureViewDataKey)`)` \nWhat key is this write response associated with.\n`onlineStoreWriteTime` `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` \nWhen the feature values were written to the online store. If [FeatureViewDirectWriteResponse.status](/vertex-ai/docs/reference/rest/v1/projects.locations.featureOnlineStores.featureViews/directWrite#body.FeatureViewDirectWriteResponse.FIELDS.status) is not OK, this field is not populated.\n\nUses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than \"Z\" are also accepted. Examples: `\"2014-10-02T15:01:23Z\"`, `\"2014-10-02T15:01:23.045123456Z\"` or `\"2014-10-02T15:01:23+05:30\"`. \n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"dataKey\": { object (/vertex-ai/docs/reference/rest/v1/FeatureViewDataKey) }, \"onlineStoreWriteTime\": string } ``` |"]]