Stay organized with collections
Save and categorize content based on your preferences.
Publish a project's Remote Config template.
Pass the ETag returned by projects.getRemoteConfig as an If-Match header to ensure the last seen Remote Config template is the one being overwritten by this update. Pass If-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.
See the publishing guide for a list of error codes.
HTTP request
PUT https://firebaseremoteconfig.googleapis.com/v1/{project=projects/*}/remoteConfig
Required. The Firebase project's Project ID or Project Number, prefixed with "projects/".
Query parameters
Parameters
validateOnly
boolean
Optional. Defaults to false. If true, the server will only attempt to validate the RemoteConfig. If validation succeeds, the RemoteConfig is not written to the Remote Config server, instead a 200 OK response is returned. If validation fails, a validation error is returned.
Note: other errors may still occur after this boolean is set to false, even if getting a 200 OK when calling with projects.updateRemoteConfig with validateOnly set to true.
Request body
The request body contains an instance of RemoteConfig.
Response body
If successful, the response body contains an instance of RemoteConfig.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-11 UTC."],[],[],null,["# Method: projects.updateRemoteConfig\n\nPublish a project's Remote Config template.\n\nPass the ETag returned by [projects.getRemoteConfig](/docs/reference/remote-config/rest/v1/projects/getRemoteConfig#google.firebase.remoteconfig.v1.RemoteConfigService.GetRemoteConfig) as an `If-Match` header to ensure the last seen Remote Config template is the one being overwritten by this update. Pass `If-Match: *` to force an update, regardless of the current version.\n\nReturns the published RemoteConfig and the updated ETag as a response header if successful, or an error.\n\nSee the publishing guide for a list of [error codes](/docs/remote-config/use-config-rest#step_5_publish_json_data_to_replace_data_in_the_service).\n\n### HTTP request\n\n`PUT https://firebaseremoteconfig.googleapis.com/v1/{project=projects/*}/remoteConfig`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-----------|----------------------------------------------------------------------------------------------------|\n| `project` | `string` Required. The Firebase project's Project ID or Project Number, prefixed with \"projects/\". |\n\n### Query parameters\n\n| Parameters ||\n|----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `validateOnly` | `boolean` Optional. Defaults to `false`. If `true`, the server will only attempt to validate the RemoteConfig. If validation succeeds, the RemoteConfig is not written to the Remote Config server, instead a `200 OK` response is returned. If validation fails, a validation error is returned. Note: other errors may still occur after this boolean is set to `false`, even if getting a `200 OK` when calling with [projects.updateRemoteConfig](/docs/reference/remote-config/rest/v1/projects/updateRemoteConfig#google.firebase.remoteconfig.v1.RemoteConfigService.UpdateRemoteConfig) with `validateOnly` set to `true`. |\n\n### Request body\n\nThe request body contains an instance of [RemoteConfig](/docs/reference/remote-config/rest/v1/RemoteConfig).\n\n### Response body\n\nIf successful, the response body contains an instance of [RemoteConfig](/docs/reference/remote-config/rest/v1/RemoteConfig).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/firebase.remoteconfig`\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/)."]]