Method: projects.databases.documents.listCollectionIds

Lists all the collection IDs underneath a document.

HTTP request

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

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent document. In the format: projects/{projectId}/databases/{databaseId}/documents/{document_path}. For example: projects/my-project/databases/my-database/documents/chatrooms/my-chatroom

Request body

The request body contains data with the following structure:

JSON representation
{
  "pageSize": integer,
  "pageToken": string,

  // Union field consistency_selector can be only one of the following:
  "readTime": string
  // End of list of possible types for union field consistency_selector.
}
Fields
pageSize

integer

The maximum number of results to return.

pageToken

string

A page token. Must be a value from