Skip to main content

documents

Overview

Namedocuments
TypeResource
Idgoogle.contentwarehouse.documents

Methods

NameAccessible byRequired ParamsDescription
getSELECTdocumentsId, locationsId, projectsIdGets a document. Returns NOT_FOUND if the document does not exist.
createINSERTlocationsId, projectsIdCreates a document.
deleteDELETEdocumentsId, locationsId, projectsIdDeletes a document. Returns NOT_FOUND if the document does not exist.
linked_sourcesEXECdocumentsId, locationsId, projectsIdReturn all source document-links from the document.
linked_targetsEXECdocumentsId, locationsId, projectsIdReturn all target document-links from the document.
lockEXECdocumentsId, locationsId, projectsIdLock the document so the document cannot be updated by other users.
patchEXECdocumentsId, locationsId, projectsIdUpdates a document. Returns INVALID_ARGUMENT if the name of the document is non-empty and does not equal the existing name.
searchEXEClocationsId, projectsIdSearches for documents using provided SearchDocumentsRequest. This call only returns documents that the caller has permission to search against.
set_aclEXECdocumentsId, locationsId, projectsIdSets the access control policy for a resource. Replaces any existing policy.