Required. The parent resource. For example: projects/{projectId}/databases/{databaseId}/documents or projects/{projectId}/databases/{databaseId}/documents/chatrooms/{chatroom_id}
collectionId
string
Required. The collection ID, relative to parent, to list. For example: chatrooms.
Query parameters
Parameters
documentId
string
The client-assigned document ID to use for this document.
Optional. If not specified, an ID will be assigned by the service.
[[["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."],[[["This API endpoint is used to create a new document within a specified collection in a Firestore database."],["The `parent` path parameter indicates the location where the document will be created, and `collectionId` identifies the specific collection."],["The `documentId` query parameter allows optionally setting a client-assigned ID; if omitted, the service will generate one."],["The `mask` query parameter enables selecting specific fields to be returned in the response."],["The request body requires a `Document` instance, and a successful response will also contain a `Document` instance."]]],[]]