Skip to main content

document_links

Creates, updates, deletes, gets or lists a document_links resource.

Overview

Namedocument_links
TypeResource
Idgoogle.contentwarehouse.document_links

Fields

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

NameAccessible byRequired ParamsDescription
createINSERTdocumentsId, locationsId, projectsIdCreate a link between a source document and a target document.
deleteDELETEdocumentLinksId, documentsId, locationsId, projectsIdRemove the link between the source and target documents.

INSERT example

Use the following StackQL query and manifest file to create a new document_links resource.

/*+ create */
INSERT INTO google.contentwarehouse.document_links (
documentsId,
locationsId,
projectsId,
requestMetadata,
documentLink
)
SELECT
'{{ documentsId }}',
'{{ locationsId }}',
'{{ projectsId }}',
'{{ requestMetadata }}',
'{{ documentLink }}'
;

DELETE example

Deletes the specified document_links resource.

/*+ delete */
DELETE FROM google.contentwarehouse.document_links
WHERE documentLinksId = '{{ documentLinksId }}'
AND documentsId = '{{ documentsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';