Method: projects.remoteConfig.downloadDefaults
Stay organized with collections
Save and categorize content based on your preferences.
Get a project's current Remote Config template parameters and default values in JSON, property list (plist), or XML format.
HTTP request
GET https://firebaseremoteconfig.googleapis.com/v1/{project=projects/*}/remoteConfig:downloadDefaults
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
project |
string
Required. The Firebase project's Project ID or Project Number, prefixed with "projects/".
|
Query parameters
Parameters |
format |
enum (Format )
Required. The file structure to return.
|
Request body
The request body must be empty.
Response body
JSON representation |
{
"contentType": string,
"data": string,
"extensions": [
{
"@type": string,
field1: ...,
...
}
]
} |
Fields |
contentType |
string
The HTTP Content-Type header value specifying the content type of the body.
|
data |
string (bytes format)
The HTTP request/response body as raw binary. A base64-encoded string.
|
extensions[] |
object
Application specific response metadata. Must be set in the first response for streaming APIs. An object containing fields of an arbitrary type. An additional field "@type" contains a URI identifying the type. Example: { "id": 1234, "@type": "types.example.com/standard/id" } .
|
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 the Authentication Overview.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-11 UTC.
[null,null,["Last updated 2024-06-11 UTC."],[],[],null,["# Method: projects.remoteConfig.downloadDefaults\n\nGet a project's current Remote Config template parameters and default values in JSON, property list (plist), or XML format.\n\n### HTTP request\n\n`GET https://firebaseremoteconfig.googleapis.com/v1/{project=projects/*}/remoteConfig:downloadDefaults`\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| `format` | `enum (`[Format](/docs/reference/remote-config/rest/v1/projects.remoteConfig/downloadDefaults#Format)`)` Required. The file structure to return. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------|\n| ``` { \"contentType\": string, \"data\": string, \"extensions\": [ { \"@type\": string, field1: ..., ... } ] } ``` |\n\n| Fields ||\n|----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `contentType` | `string` The HTTP Content-Type header value specifying the content type of the body. |\n| `data` | `string (`[bytes](https://developers.google.com/discovery/v1/type-format)` format)` The HTTP request/response body as raw binary. A base64-encoded string. |\n| `extensions[]` | `object` Application specific response metadata. Must be set in the first response for streaming APIs. An object containing fields of an arbitrary type. An additional field `\"@type\"` contains a URI identifying the type. Example: `{ \"id\": 1234, \"@type\": \"types.example.com/standard/id\" }`. |\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/).\n\nFormat\n------\n\nThe file format to request.\n\n| Enums ||\n|----------------------|-----------------------------------------------------------------------------|\n| `FORMAT_UNSPECIFIED` | Catch-all for unrecognized enum values. |\n| `XML` | Returns a response in XML format. |\n| `PLIST` | Returns a response in property list (plist) format. |\n| `JSON` | Returns a response in raw JSON format (not packaged in an HttpBody object). |"]]