Stay organized with collections
Save and categorize content based on your preferences.
Gets a document. Returns NOT_FOUND if the document does not exist.
HTTP request
POST https://contentwarehouse.googleapis.com/v1/{name}:get
Path parameters
Parameters
name
string
Required. The name of the document to retrieve. Format: projects/{projectNumber}/locations/{location}/documents/{documentId} or projects/{projectNumber}/locations/{location}/documents/referenceId/{referenceId}. It takes the form projects/{project}/locations/{location}/documents/referenceId/{referenceid}.
Request body
The request body contains data with the following structure:
[[["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-05-08 UTC."],[[["\u003cp\u003eThis API endpoint retrieves a specific document based on the provided document name, returning a \u003ccode\u003eNOT_FOUND\u003c/code\u003e error if the document does not exist.\u003c/p\u003e\n"],["\u003cp\u003eThe request uses a \u003ccode\u003ePOST\u003c/code\u003e method to the specified URL, with the document's name, including project, location, and document ID or reference ID, provided as a required path parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe request body contains metadata about the user, which is used for access control.\u003c/p\u003e\n"],["\u003cp\u003eA successful response returns an instance of a \u003ccode\u003eDocument\u003c/code\u003e object, containing the requested document's information.\u003c/p\u003e\n"],["\u003cp\u003eAccessing this endpoint requires the \u003ccode\u003econtentwarehouse.documents.get\u003c/code\u003e IAM permission and the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,[]]