---
title: "PATCH /v1beta1/projects/{projectsId}/webApps/{webAppsId}"
method: PATCH
path: "/v1beta1/projects/{projectsId}/webApps/{webAppsId}"
tags: ["projects"]
---

# PATCH /v1beta1/projects/{projectsId}/webApps/{webAppsId}

`PATCH /v1beta1/projects/{projectsId}/webApps/{webAppsId}`

## Request

- Base URL: `https://firebase.googleapis.com`
- URL: `https://firebase.googleapis.com/v1beta1/projects/{projectsId}/webApps/{webAppsId}`
- Auth: one of:
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-platform`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/firebase`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/firebase`

Updates the attributes of the specified WebApp.

## Path parameters

- `projectsId` string, required
- `webAppsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `updateMask` string, google-fieldmask

## Request body

- WebApp: Details of a Firebase App for the web.
  - `apiKeyId` string: The globally unique, Google-assigned identifier (UID) for the Firebase API key associated with the `WebApp`. Be aware that this value is the UID of the API key, _not_ the [`keyString`](https://cloud.google.com/api-keys/docs/reference/rest/v2/projects.locations.keys#Key.FIELDS.key_string) of the API key. The `keyString` is the value that can be found in the App's [configuration artifact](../../rest/v1beta1/projects.webApps/getConfig). If `api_key_id` is not set in requests to [`webApps.Create`](../../rest/v1beta1/projects.webApps/create), then Firebase automatically associates an `api_key_id` with the `WebApp`. This auto-associated key may be an existing valid key or, if no valid key exists, a new one will be provisioned. In patch requests, `api_key_id` cannot be set to an empty value, and the new UID must have no restrictions or only have restrictions that are valid for the associated `WebApp`. We recommend using the [Google Cloud Console](https://console.cloud.google.com/apis/credentials) to manage API keys.
  - `appId` string: Output only. Immutable. The globally unique, Firebase-assigned identifier for the `WebApp`. This identifier should be treated as an opaque token, as the data format is not specified.
  - `appUrls` string[]: The URLs where the `WebApp` is hosted.
  - `displayName` string: The user-assigned display name for the `WebApp`.
  - `etag` string: This checksum is computed by the server based on the value of other fields, and it may be sent with update requests to ensure the client has an up-to-date value before proceeding. Learn more about `etag` in Google's [AIP-154 standard](https://google.aip.dev/154#declarative-friendly-resources). This etag is strongly validated.
  - `expireTime` string, google-datetime: Output only. If the App has been removed from the Project, this is the timestamp of when the App is considered expired and will be permanently deleted. After this time, the App cannot be undeleted (that is, restored to the Project). This value is only provided if the App is in the `DELETED` state.
  - `labels` object: Optional. Set of labels assigned to the `WebApp`. Valid label keys have two segments: an optional prefix and a name, separated by a slash (`/`). `firebase.*/` prefixes are reserved for Firebase-service use, and `express.cloud/` is reserved for Google Cloud Express. In update requests, `labels` is only replaced when explicitly named in `update_mask` or populated in the request. To change one label, name it in `update_mask` as `labels.`, for example `labels.env`. If the request's `labels` doesn't have that key, the label is removed. Write keys in lowercase. In REST requests, `update_mask` uses the [JSON encoding](https://protobuf.dev/programming-guides/json/), which converts each path from lowerCamelCase to snake_case, keys included. So `labels.myKey` becomes `labels.my_key`, and `labels.Env` becomes `labels.env`.
  - `name` string: The resource name of the WebApp, in the format: projects/PROJECT_IDENTIFIER /webApps/APP_ID * PROJECT_IDENTIFIER: the parent Project's [`ProjectNumber`](../projects#FirebaseProject.FIELDS.project_number) ***(recommended)*** or its [`ProjectId`](../projects#FirebaseProject.FIELDS.project_id). Learn more about using project identifiers in Google's [AIP 2510 standard](https://google.aip.dev/cloud/2510). Note that the value for PROJECT_IDENTIFIER in any response body will be the `ProjectId`. * APP_ID: the globally unique, Firebase-assigned identifier for the App (see [`appId`](../projects.webApps#WebApp.FIELDS.app_id)).
  - `projectId` string: Output only. Immutable. A user-assigned unique identifier of the parent FirebaseProject for the `WebApp`.
  - `state` 'STATE_UNSPECIFIED' | 'ACTIVE' | 'DELETED': Output only. The lifecycle state of the App.
  - `webId` string: Output only. Immutable. A unique, Firebase-assigned identifier for the `WebApp`. This identifier is only used to populate the `namespace` value for the `WebApp`. For most use cases, use `appId` to identify or reference the App. The `webId` value is only unique within a `FirebaseProject` and its associated Apps.

## Response `200`

Successful response

- WebApp: Details of a Firebase App for the web.
  - `apiKeyId` string: The globally unique, Google-assigned identifier (UID) for the Firebase API key associated with the `WebApp`. Be aware that this value is the UID of the API key, _not_ the [`keyString`](https://cloud.google.com/api-keys/docs/reference/rest/v2/projects.locations.keys#Key.FIELDS.key_string) of the API key. The `keyString` is the value that can be found in the App's [configuration artifact](../../rest/v1beta1/projects.webApps/getConfig). If `api_key_id` is not set in requests to [`webApps.Create`](../../rest/v1beta1/projects.webApps/create), then Firebase automatically associates an `api_key_id` with the `WebApp`. This auto-associated key may be an existing valid key or, if no valid key exists, a new one will be provisioned. In patch requests, `api_key_id` cannot be set to an empty value, and the new UID must have no restrictions or only have restrictions that are valid for the associated `WebApp`. We recommend using the [Google Cloud Console](https://console.cloud.google.com/apis/credentials) to manage API keys.
  - `appId` string: Output only. Immutable. The globally unique, Firebase-assigned identifier for the `WebApp`. This identifier should be treated as an opaque token, as the data format is not specified.
  - `appUrls` string[]: The URLs where the `WebApp` is hosted.
  - `displayName` string: The user-assigned display name for the `WebApp`.
  - `etag` string: This checksum is computed by the server based on the value of other fields, and it may be sent with update requests to ensure the client has an up-to-date value before proceeding. Learn more about `etag` in Google's [AIP-154 standard](https://google.aip.dev/154#declarative-friendly-resources). This etag is strongly validated.
  - `expireTime` string, google-datetime: Output only. If the App has been removed from the Project, this is the timestamp of when the App is considered expired and will be permanently deleted. After this time, the App cannot be undeleted (that is, restored to the Project). This value is only provided if the App is in the `DELETED` state.
  - `labels` object: Optional. Set of labels assigned to the `WebApp`. Valid label keys have two segments: an optional prefix and a name, separated by a slash (`/`). `firebase.*/` prefixes are reserved for Firebase-service use, and `express.cloud/` is reserved for Google Cloud Express. In update requests, `labels` is only replaced when explicitly named in `update_mask` or populated in the request. To change one label, name it in `update_mask` as `labels.`, for example `labels.env`. If the request's `labels` doesn't have that key, the label is removed. Write keys in lowercase. In REST requests, `update_mask` uses the [JSON encoding](https://protobuf.dev/programming-guides/json/), which converts each path from lowerCamelCase to snake_case, keys included. So `labels.myKey` becomes `labels.my_key`, and `labels.Env` becomes `labels.env`.
  - `name` string: The resource name of the WebApp, in the format: projects/PROJECT_IDENTIFIER /webApps/APP_ID * PROJECT_IDENTIFIER: the parent Project's [`ProjectNumber`](../projects#FirebaseProject.FIELDS.project_number) ***(recommended)*** or its [`ProjectId`](../projects#FirebaseProject.FIELDS.project_id). Learn more about using project identifiers in Google's [AIP 2510 standard](https://google.aip.dev/cloud/2510). Note that the value for PROJECT_IDENTIFIER in any response body will be the `ProjectId`. * APP_ID: the globally unique, Firebase-assigned identifier for the App (see [`appId`](../projects.webApps#WebApp.FIELDS.app_id)).
  - `projectId` string: Output only. Immutable. A user-assigned unique identifier of the parent FirebaseProject for the `WebApp`.
  - `state` 'STATE_UNSPECIFIED' | 'ACTIVE' | 'DELETED': Output only. The lifecycle state of the App.
  - `webId` string: Output only. Immutable. A unique, Firebase-assigned identifier for the `WebApp`. This identifier is only used to populate the `namespace` value for the `WebApp`. For most use cases, use `appId` to identify or reference the App. The `webId` value is only unique within a `FirebaseProject` and its associated Apps.

## Changes

- **2026-11-16** `494535cd5675`: 4 info
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/firebase` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/firebase` was removed from the endpoint's security scheme `Oauth2c`

[Operation history](https://skmtc.dev/google/apis/firebase/changes/v1beta1/projects/:projectsId/webApps/:webAppsId/patch.md)

---

[API](https://skmtc.dev/google/apis/firebase.md) - [All operations](https://skmtc.dev/google/apis/firebase/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/firebase/revisions/494535cd5675?raw)
