---
title: "PATCH /projects/{project}/global/previewFeatures/{previewFeature}"
method: PATCH
path: "/projects/{project}/global/previewFeatures/{previewFeature}"
tags: ["previewFeatures"]
---

# PATCH /projects/{project}/global/previewFeatures/{previewFeature}

`PATCH /projects/{project}/global/previewFeatures/{previewFeature}`

Patches the given PreviewFeature. This method is used to enable or disable
a PreviewFeature.

## Path parameters

- `project` string, required
- `previewFeature` string, required

## Query parameters

- `requestId` string

## Request body

- PreviewFeature — Represents a single Google Compute Engine preview feature.
  - `status` PreviewFeatureStatus — [Output Only] The status of the feature.
    - `description` string — Output only. [Output Only] The description of the feature.
    - `helpLink` string — Output only. [Output Only] Link to the public documentation for the feature.
    - `releaseStatus` PreviewFeatureStatusReleaseStatus — [Output Only] The release status of the feature.
      - `updateDate` Date — Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
        - `month` integer — Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
        - `year` integer — Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
        - `day` integer — Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
      - `stage` 'DEPRECATED' | 'GA' | 'PREVIEW' | 'STAGE_UNSPECIFIED' — Output only. [Output Only] The stage of the feature.
  - `description` string — Output only. [Output Only] Description of the feature.
  - `creationTimestamp` string — Output only. [Output Only] Creation timestamp inRFC3339 text format.
  - `id` string, uint64 — Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
  - `activationStatus` 'ACTIVATION_STATE_UNSPECIFIED' | 'DISABLED' | 'ENABLED' — Specifies whether the feature is enabled or disabled.
  - `name` string — Name of the feature.
  - `kind` string — Output only. [Output only] The type of the feature. Always "compute#previewFeature" for preview features.
  - `rolloutOperation` PreviewFeatureRolloutOperation — Represents the rollout operation
    - `rolloutInput` PreviewFeatureRolloutOperationRolloutInput — Represents the input for the rollout operation.
      - `name` string — The name of the rollout plan Ex. organizations//locations/global/rolloutPlans/ Ex. folders//locations/global/rolloutPlans/ Ex. projects//locations/global/rolloutPlans/.
      - `predefinedRolloutPlan` 'ROLLOUT_PLAN_FAST_ROLLOUT' | 'ROLLOUT_PLAN_TWO_DAY_ROLLOUT' | 'ROLLOUT_PLAN_UNSPECIFIED' — Predefined rollout plan.
  - `selfLink` string — Output only. [Output Only] Server-defined URL for the resource.

## Response `200`

Successful response

---

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