Required. A parent name of the form projects/{projectId}
Query parameters
Parameters
databaseId
string
Required. The ID to use for the database, which will become the final component of the database's resource name.
This value should be 4-63 characters. Valid characters are /[a-z][0-9]-/ with first character a letter and the last a letter or a number. Must not be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/.
"(default)" database ID is also valid.
Request body
The request body contains an instance of Database.
Response body
If successful, the response body contains a newly created instance of Operation.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-21 UTC."],[[["A `POST` request to `https://firestore.googleapis.com/v1/{parent=projects/*}/databases` is used to create a database within a specified project."],["The `parent` parameter in the URL path, formatted as `projects/{projectId}`, is a required string indicating the project where the database will be created."],["The `databaseId` query parameter, which is a required string, determines the ID of the database, adhering to a 4-63 character length limit and specific character constraints, excluding UUID-like structures."],["The request body must contain an instance of `Database` and the response body returns an instance of `Operation`."],["Creating a database requires either `https://www.googleapis.com/auth/datastore` or `https://www.googleapis.com/auth/cloud-platform` OAuth scopes for authorization."]]],[]]