Method: projects.updateRemoteConfig

Publish a project's Remote Config template.

Pass the ETag returned byprojects.getRemoteConfig as anIf-Match header to ensure the last seen Remote Config template is the one being overwritten by this update. PassIf-Match: * to force an update, regardless of the current version.

Returns the published RemoteConfig and the updated ETag as a response header if successful, or an error.

To update the server-side template, use "firebase-server" as the namespace ID in [UpdateRemoteConfigRequest.name]. If [UpdateRemoteConfigRequest.name] is not provided, the client-side template ('firebase' namespace) is updated.

See the publishing guide for a list oferror codes.

HTTP request

PUT https://firebaseremoteconfig.googleapis.com/v1/{project=projects/*}/remoteConfig

The URL usesgRPC Transcoding syntax.

Path parameters

Parameters
project

string

The Firebase project's Project ID or Project Number, prefixed with "projects/". This field is required if thename field is not provided.

Query parameters

Parameters
validateOnly

boolean

Optional. Defaults tofalse. Iftrue, the server will only attempt to validate the RemoteConfig. If validation succeeds, the RemoteConfig is not written to the Remote Config server, instead a200 OK response is returned. If validation fails, a validation error is returned.

Note: other errors may still occur after this boolean is set tofalse, even if getting a200 OK when calling withprojects.updateRemoteConfig withvalidateOnly set totrue.

name

string

Optional. The name of the RemoteConfig to update. Format: projects/{project}/namespaces/{namespace}/remoteConfig Project is a Firebase project ID or project number. Namespace is the namespace ID (e.g.: firebase or firebase-server)

Request body

The request body contains an instance ofRemoteConfig.

Response body

If successful, the response body contains an instance ofRemoteConfig.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/firebase.remoteconfig
  • https://www.googleapis.com/auth/cloud-platform

For more information, see theOAuth 2.0 Overview.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-10-03 UTC.