---
title: "Add documents to a deployment policy"
method: POST
path: "/v2/deploymentPolicies/{deploymentPolicyId}/files"
tags: ["Deployment policies"]
---

# Add documents to a deployment policy

`POST /v2/deploymentPolicies/{deploymentPolicyId}/files`

## Request

- Base URL: `https://api.sigmacomputing.com`
- URL: `https://api.sigmacomputing.com/v2/deploymentPolicies/{deploymentPolicyId}/files`
- Auth: HTTP bearer

Add documents to a deployment policy.

### Usage notes
- Retrieve the `deploymentPolicyId` from the [/v2/deploymentPolicies](https://help.sigmacomputing.com/reference/list-deployments) endpoint.
- To add workbooks to a deployment policy, retrieve the relevant `workbookId` from the [/v2/workbooks](https://help.sigmacomputing.com/reference/list-workbooks) endpoint.
- To add data models to a deployment policy, retrieve the relevant `dataModelId` from the [/v2/datamodels](https://help.sigmacomputing.com/reference/list-data-models) endpoint.
- To add reports to a deployment policy, retrieve the relevant `reportId` from the [/v2/reports](https://help.sigmacomputing.com/reference/list-reports) endpoint.
- To add folders to a deployment policy, retrieve the relevant folder ID from the [/v2/files](https://help.sigmacomputing.com/reference/list-files) endpoint and review the `id` field in the response for files with a `type` of `folder`.
- Adding a folder deploys the documents it contains. Templates cannot be added to a deployment policy.

### Usage scenarios
- Centrally manage documents that are deployed to specific tenant organizations.
- Deploy an entire folder of documents to tenant organizations without listing each document individually.

## Path parameters

- `deploymentPolicyId` string, required

## Request body

- object
  - `inodeIds` string[], required: Unique identifier of the workbook, data model, report, or folder.

## Response `200`

The response body.

- DeploymentPoliciesAddInodesToDeploymentResponse200

---

[API](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api.md) - [All operations](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/revisions/fb6036208c49?raw)
