Stay organized with collections
Save and categorize content based on your preferences.
Return all target document-links from the document.
HTTP request
POST https://contentwarehouse.googleapis.com/v1/{parent}/linkedTargets
Path parameters
Parameters
parent
string
Required. The name of the document, for which all target links are returned. Format: projects/{projectNumber}/locations/{location}/documents/{target_document_id}. It takes the form projects/{project}/locations/{location}/documents/{document}.
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 endpoint retrieves all target document links associated with a specified document.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request is a POST method to the URL \u003ccode\u003ehttps://contentwarehouse.googleapis.com/v1/{parent}/linkedTargets\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eparent\u003c/code\u003e path parameter is required and specifies the document to retrieve target links from, using the format: \u003ccode\u003eprojects/{projectNumber}/locations/{location}/documents/{target_document_id}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain a \u003ccode\u003erequestMetadata\u003c/code\u003e object to provide information about the document creator for access control purposes.\u003c/p\u003e\n"],["\u003cp\u003eThe successful response body includes an array of \u003ccode\u003edocumentLinks\u003c/code\u003e, which represent the target document links, and a \u003ccode\u003enextPageToken\u003c/code\u003e for paginated results if there are multiple pages.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.documents.linkedTargets\n\nReturn all target document-links from the document.\n\n### HTTP request\n\n`POST https://contentwarehouse.googleapis.com/v1/{parent}/linkedTargets`\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nResponse message for DocumentLinkService.ListLinkedTargets.\n\nIf successful, the response body contains data with the following structure:\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource:\n\n- `contentwarehouse.documents.get`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]