---
title: "POST /v1/{+featureView}:directWrite"
method: POST
path: "/v1/{+featureView}:directWrite"
tags: ["projects"]
---

# POST /v1/{+featureView}:directWrite

`POST /v1/{+featureView}: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.

## Path parameters

- `featureView` string, required

## Request body

- GoogleCloudAiplatformV1FeatureViewDirectWriteRequest — Request message for FeatureOnlineStoreService.FeatureViewDirectWrite.
  - `dataKeyAndFeatureValues` GoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues[] — Required. The data keys and associated feature values.
    - `features` GoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature[] — List of features to write.
      - `value` GoogleCloudAiplatformV1FeatureValue — Value for a feature.
        - `metadata` GoogleCloudAiplatformV1FeatureValueMetadata — Metadata of feature value.
          - `generateTime` string, google-datetime — Feature generation timestamp. Typically, it is provided by user at feature ingestion time. If not, feature store will use the system timestamp when the data is ingested into feature store. Legacy Feature Store: For streaming ingestion, the time, aligned by days, must be no older than five years (1825 days) and no later than one year (366 days) in the future.
        - `doubleValue` number, double — Double type feature value.
        - `stringValue` string — String feature value.
        - `int64ArrayValue` GoogleCloudAiplatformV1Int64Array — A list of int64 values.
          - `values` string[] — A list of int64 values.
        - `doubleArrayValue` GoogleCloudAiplatformV1DoubleArray — A list of double values.
          - `values` number[] — A list of double values.
        - `boolValue` boolean — Bool type feature value.
        - `bytesValue` string, byte — Bytes feature value.
        - `structValue` GoogleCloudAiplatformV1StructValue — Struct (or object) type feature value.
          - `values` GoogleCloudAiplatformV1StructFieldValue[] — A list of field values.
            - `name` string — Name of the field in the struct feature.
            - `value` GoogleCloudAiplatformV1FeatureValue — recursive
        - `int64Value` string, int64 — Int64 feature value.
        - `stringArrayValue` GoogleCloudAiplatformV1StringArray — A list of string values.
          - `values` string[] — A list of string values.
        - `boolArrayValue` GoogleCloudAiplatformV1BoolArray — A list of boolean values.
          - `values` boolean[] — A list of bool values.
      - `name` string — Feature short name.
    - `dataKey` GoogleCloudAiplatformV1FeatureViewDataKey — Lookup key for a feature view.
      - `key` string — String key to use for lookup.
      - `compositeKey` GoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey — ID that is comprised from several parts (columns).
        - `parts` string[] — Parts to construct Entity ID. Should match with the same ID columns as defined in FeatureView in the same order.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/aiplatform.md) · [All operations](https://skmtc.net/google/apis/aiplatform/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/aiplatform/versions/b608d71b91f0/schema)
