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

# POST /v1/{+parent}/features

`POST /v1/{+parent}/features`

Creates a new Feature in a given FeatureGroup.

## Path parameters

- `parent` string, required

## Query parameters

- `featureId` string

## Request body

- GoogleCloudAiplatformV1Feature — Feature Metadata information. For example, color is a feature that describes an apple.
  - `monitoringStatsAnomalies` GoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly[] — Output only. Only applicable for Vertex AI Feature Store (Legacy). The list of historical stats and anomalies with specified objectives.
    - `objective` 'OBJECTIVE_UNSPECIFIED' | 'IMPORT_FEATURE_ANALYSIS' | 'SNAPSHOT_ANALYSIS' — Output only. The objective for each stats.
    - `featureStatsAnomaly` GoogleCloudAiplatformV1FeatureStatsAnomaly — Stats and Anomaly generated at specific timestamp for specific Feature. The start_time and end_time are used to define the time range of the dataset that current stats belongs to, e.g. prediction traffic is bucketed into prediction datasets by time window. If the Dataset is not defined by time window, start_time = end_time. Timestamp of the stats and anomalies always refers to end_time. Raw stats and anomalies are stored in stats_uri or anomaly_uri in the tensorflow defined protos. Field data_stats contains almost identical information with the raw stats in Vertex AI defined proto, for UI to display.
      - `distributionDeviation` number, double — Deviation from the current stats to baseline stats. 1. For categorical feature, the distribution distance is calculated by L-inifinity norm. 2. For numerical feature, the distribution distance is calculated by Jensen–Shannon divergence.
      - `anomalyDetectionThreshold` number, double — This is the threshold used when detecting anomalies. The threshold can be changed by user, so this one might be different from ThresholdConfig.value.
      - `startTime` string, google-datetime — The start timestamp of window where stats were generated. For objectives where time window doesn't make sense (e.g. Featurestore Snapshot Monitoring), start_time is only used to indicate the monitoring intervals, so it always equals to (end_time - monitoring_interval).
      - `statsUri` string — Path of the stats file for current feature values in Cloud Storage bucket. Format: gs:////stats. Example: gs://monitoring_bucket/feature_name/stats. Stats are stored as binary format with Protobuf message [tensorflow.metadata.v0.FeatureNameStatistics](https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/statistics.proto).
      - `endTime` string, google-datetime — The end timestamp of window where stats were generated. For objectives where time window doesn't make sense (e.g. Featurestore Snapshot Monitoring), end_time indicates the timestamp of the data used to generate stats (e.g. timestamp we take snapshots for feature values).
      - `anomalyUri` string — Path of the anomaly file for current feature values in Cloud Storage bucket. Format: gs:////anomalies. Example: gs://monitoring_bucket/feature_name/anomalies. Stats are stored as binary format with Protobuf message Anoamlies are stored as binary format with Protobuf message [tensorflow.metadata.v0.AnomalyInfo] (https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/anomalies.proto).
      - `score` number, double — Feature importance score, only populated when cross-feature monitoring is enabled. For now only used to represent feature attribution score within range [0, 1] for ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW and ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT.
  - `etag` string — Used to perform a consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
  - `labels` object — Optional. The labels with user-defined metadata to organize your Features. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information on and examples of labels. No more than 64 user labels can be associated with one Feature (System labels are excluded)." System reserved label keys are prefixed with "aiplatform.googleapis.com/" and are immutable.
  - `updateTime` string, google-datetime — Output only. Only applicable for Vertex AI Feature Store (Legacy). Timestamp when this EntityType was most recently updated.
  - `valueType` 'VALUE_TYPE_UNSPECIFIED' | 'BOOL' | 'BOOL_ARRAY' | 'DOUBLE' | 'DOUBLE_ARRAY' | 'INT64' | 'INT64_ARRAY' | 'STRING' | 'STRING_ARRAY' | 'BYTES' | 'STRUCT' — Immutable. Only applicable for Vertex AI Feature Store (Legacy). Type of Feature value.
  - `name` string — Immutable. Name of the Feature. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` The last part feature is assigned by the client. The feature can be up to 64 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII digits 0-9 starting with a letter. The value will be unique given an entity type.
  - `description` string — Description of the Feature.
  - `pointOfContact` string — Entity responsible for maintaining this feature. Can be comma separated list of email addresses or URIs.
  - `createTime` string, google-datetime — Output only. Only applicable for Vertex AI Feature Store (Legacy). Timestamp when this EntityType was created.
  - `disableMonitoring` boolean — Optional. Only applicable for Vertex AI Feature Store (Legacy). If not set, use the monitoring_config defined for the EntityType this Feature belongs to. Only Features with type (Feature.ValueType) BOOL, STRING, DOUBLE or INT64 can enable monitoring. If set to true, all types of data monitoring are disabled despite the config on EntityType.
  - `versionColumnName` string — Only applicable for Vertex AI Feature Store. The name of the BigQuery Table/View column hosting data for this version. If no value is provided, will use feature_id.

## 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)
