Method: projects.databases.create

Stay organized with collections Save and categorize content based on your preferences.

Create a database.

HTTP request

POST https://firestore.googleapis.com/v1/{parent=projects/*}/databases

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

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.

The value must be set to "(default)".

Request body

The request body contains an instance of Database.

Response body

If successful, the response body contains a newly created instance of Operation.

Authorization Scopes

Requires one of the following OAuth scopes:

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

For more information, see the Authentication Overview.