# Document AI Warehouse API

## Service: contentwarehouse.googleapis.com

To call this service, we recommend that you use the Google-provided [client libraries](https://cloud.google.com/apis/docs/client-libraries-explained). If your application needs to use your own libraries to call this service, use the following information when you make the API requests.

### Discovery document

A [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:

- <https://contentwarehouse.googleapis.com/$discovery/rest?version=v1>

### Service endpoint

A [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:

- `https://contentwarehouse.googleapis.com`

## REST Resource: [v1.projects](https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects/fetchAcl` | `POST /v1/{resource}:fetchAcl` Gets the access control policy for a resource. |
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects/setAcl` | `POST /v1/{resource}:setAcl` Sets the access control policy for a resource. |

## REST Resource: [v1.projects.locations](https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations/getStatus` | `GET /v1/{location}:getStatus` Get the project status. |
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations/initialize` | `POST /v1/{location}:initialize` Provisions resources for given tenant project. |
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations/runPipeline` | `POST /v1/{name}:runPipeline` Run a predefined pipeline. |

## REST Resource: [v1.projects.locations.documentSchemas](https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.documentSchemas)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.documentSchemas/create` | `POST /v1/{parent}/documentSchemas` Creates a document schema. |
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.documentSchemas/delete` | `DELETE /v1/{name}` Deletes a document schema. |
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.documentSchemas/get` | `GET /v1/{name}` Gets a document schema. |
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.documentSchemas/list` | `GET /v1/{parent}/documentSchemas` Lists document schemas. |
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.documentSchemas/patch` | `PATCH /v1/{name}` Updates a Document Schema. |

## REST Resource: [v1.projects.locations.documents](https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.documents)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.documents/create` | `POST /v1/{parent}/documents` Creates a document. |
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.documents/delete` | `POST /v1/{name}:delete` Deletes a document. |
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.documents/fetchAcl` | `POST /v1/{resource}:fetchAcl` Gets the access control policy for a resource. |
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.documents/get` | `POST /v1/{name}:get` Gets a document. |
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.documents/linkedSources` | `POST /v1/{parent}/linkedSources` Return all source document-links from the document. |
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.documents/linkedTargets` | `POST /v1/{parent}/linkedTargets` Return all target document-links from the document. |
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.documents/lock` | `POST /v1/{name}:lock` Lock the document so the document cannot be updated by other users. |
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.documents/patch` | `PATCH /v1/{name}` Updates a document. |
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.documents/search` | `POST /v1/{parent}/documents:search` Searches for documents using provided `SearchDocumentsRequest`. |
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.documents/setAcl` | `POST /v1/{resource}:setAcl` Sets the access control policy for a resource. |

## REST Resource: [v1.projects.locations.documents.documentLinks](https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.documents.documentLinks)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.documents.documentLinks/create` | `POST /v1/{parent}/documentLinks` Create a link between a source document and a target document. |
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.documents.documentLinks/delete` | `POST /v1/{name}:delete` Remove the link between the source and target documents. |

## REST Resource: [v1.projects.locations.documents.referenceId](https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.documents.referenceId)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.documents.referenceId/delete` | `POST /v1/{name}:delete` Deletes a document. |
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.documents.referenceId/get` | `POST /v1/{name}:get` Gets a document. |
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.documents.referenceId/patch` | `PATCH /v1/{name}` Updates a document. |

## REST Resource: [v1.projects.locations.operations](https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.operations)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.operations/get` | `GET /v1/{name}` Gets the latest state of a long-running operation. |

## REST Resource: [v1.projects.locations.ruleSets](https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.ruleSets)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.ruleSets/create` | `POST /v1/{parent}/ruleSets` Creates a ruleset. |
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.ruleSets/delete` | `DELETE /v1/{name}` Deletes a ruleset. |
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.ruleSets/get` | `GET /v1/{name}` Gets a ruleset. |
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.ruleSets/list` | `GET /v1/{parent}/ruleSets` Lists rulesets. |
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.ruleSets/patch` | `PATCH /v1/{name}` Updates a ruleset. |

## REST Resource: [v1.projects.locations.synonymSets](https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.synonymSets)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.synonymSets/create` | `POST /v1/{parent}/synonymSets` Creates a SynonymSet for a single context. |
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.synonymSets/delete` | `DELETE /v1/{name}` Deletes a SynonymSet for a given context. |
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.synonymSets/get` | `GET /v1/{name}` Gets a SynonymSet for a particular context. |
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.synonymSets/list` | `GET /v1/{parent}/synonymSets` Returns all SynonymSets (for all contexts) for the specified location. |
| `https://docs.cloud.google.com/document-warehouse/docs/reference/rest/v1/projects.locations.synonymSets/patch` | `PATCH /v1/{name}` Remove the existing SynonymSet for the context and replaces it with a new one. |