Stay organized with collections
Save and categorize content based on your preferences.
Return all source document-links from the document.
HTTP request
POST https://contentwarehouse.googleapis.com/v1/{parent}/linkedSources
Path parameters
Parameters
parent
string
Required. The name of the document, for which all source links are returned. Format: projects/{projectNumber}/locations/{location}/documents/{source_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 source document links associated with a specified document using a POST request.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eparent\u003c/code\u003e path parameter is mandatory and defines the target document's location and ID in the format: \u003ccode\u003eprojects/{projectNumber}/locations/{location}/documents/{source_document_id}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body can specify \u003ccode\u003epageSize\u003c/code\u003e to limit the number of returned document links, \u003ccode\u003epageToken\u003c/code\u003e for pagination, and \u003ccode\u003erequestMetadata\u003c/code\u003e for access control information.\u003c/p\u003e\n"],["\u003cp\u003eThe response includes a list of \u003ccode\u003edocumentLinks\u003c/code\u003e, each representing a source document link, and \u003ccode\u003enextPageToken\u003c/code\u003e for fetching subsequent pages of results.\u003c/p\u003e\n"],["\u003cp\u003eAccessing this endpoint requires the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e and the IAM permission \u003ccode\u003econtentwarehouse.documents.get\u003c/code\u003e on the parent resource.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.documents.linkedSources\n\nReturn all source document-links from the document.\n\n### HTTP request\n\n`POST https://contentwarehouse.googleapis.com/v1/{parent}/linkedSources`\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.ListLinkedSources.\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)."]]