---
title: "Validate a template installation"
description: "Read-only validation of saved dependencies and destination field conflicts. Schema v3 also returns bindings[] (slots plus destination options), unresolvedBindingIds, and canInstall which requires every required slot to be decided. Legacy v1/v2 snapshots keep the prior blocker behavior. Grouped issues include context.locations."
---

> Documentation Index
> Fetch the complete documentation index at: https://developer.channelautomations.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Channel Automation API › Actions

`POST /api/workspaces/{workspaceId}/automation-templates/{templateId}/install/preview`

Read-only validation of saved dependencies and destination field conflicts. Schema v3 also returns bindings[] (slots plus destination options), unresolvedBindingIds, and canInstall which requires every required slot to be decided. Legacy v1/v2 snapshots keep the prior blocker behavior. Grouped issues include context.locations.

## Authentication

Requires one of the following:

- `BearerAuth`, http, header `Authorization`, format `JWT`
- `ApiKeyAuth`, apiKey, in header, header `X-API-Key`, format `API_KEY`

## Path parameters

- `workspaceId` (`post/api/workspaces/workspaceId/automation-templates/templateId/install/preview.path.workspaceId`; string, required)
- `templateId` (`post/api/workspaces/workspaceId/automation-templates/templateId/install/preview.path.templateId`; string, required)
  - format `uuid`

## Request body

_Required._

- `destinationWorkspaceId` (`post/api/workspaces/workspaceId/automation-templates/templateId/install/preview.destinationWorkspaceId`; string, required)
- `bindings` (`post/api/workspaces/workspaceId/automation-templates/templateId/install/preview.bindings`; map<object>, optional) — Schema v3 slot decisions keyed by binding id (seq:, flow:, field:, field-conflict:).

## Example request

```json
{
  "destinationWorkspaceId": "string",
  "bindings": {
    "property1": {
      "action": "bind",
      "targetId": "cbca1126-180e-4334-9df8-cf82289d378b"
    },
    "property2": {
      "action": "bind",
      "targetId": "cbca1126-180e-4334-9df8-cf82289d378b"
    }
  }
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.channelautomation.com/api/workspaces/<workspaceId>/automation-templates/<templateId>/install/preview' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "destinationWorkspaceId": "string",
  "bindings": {
    "property1": {
      "action": "bind",
      "targetId": "cbca1126-180e-4334-9df8-cf82289d378b"
    },
    "property2": {
      "action": "bind",
      "targetId": "cbca1126-180e-4334-9df8-cf82289d378b"
    }
  }
}
'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/workspaces/<workspaceId>/automation-templates/<templateId>/install/preview';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({
    destinationWorkspaceId: 'string',
    bindings: {
      property1: {action: 'bind', targetId: 'cbca1126-180e-4334-9df8-cf82289d378b'},
      property2: {action: 'bind', targetId: 'cbca1126-180e-4334-9df8-cf82289d378b'}
    }
  })
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.channelautomation.com/api/workspaces/<workspaceId>/automation-templates/<templateId>/install/preview"

payload = {
    "destinationWorkspaceId": "string",
    "bindings": {
        "property1": {
            "action": "bind",
            "targetId": "cbca1126-180e-4334-9df8-cf82289d378b"
        },
        "property2": {
            "action": "bind",
            "targetId": "cbca1126-180e-4334-9df8-cf82289d378b"
        }
    }
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Successful operation. Schema v3 includes bindings, unresolvedBindingIds, and canInstall.

#### Example

```json
{
  "success": true,
  "canInstall": true,
  "unresolvedBindingIds": [
    "string"
  ],
  "bindings": [
    {
      "id": "string",
      "kind": "sequence",
      "required": true,
      "allow_skip": true,
      "options": [
        {}
      ],
      "optionsTruncated": true
    }
  ]
}
```

- `success` (`post/api/workspaces/workspaceId/automation-templates/templateId/install/preview.response.200.success`; boolean, optional)
- `canInstall` (`post/api/workspaces/workspaceId/automation-templates/templateId/install/preview.response.200.canInstall`; boolean, optional)
- `unresolvedBindingIds` (`post/api/workspaces/workspaceId/automation-templates/templateId/install/preview.response.200.unresolvedBindingIds`; array<string>, optional)
- `bindings` (`post/api/workspaces/workspaceId/automation-templates/templateId/install/preview.response.200.bindings`; array<object>, optional)
  - `id` (`post/api/workspaces/workspaceId/automation-templates/templateId/install/preview.response.200.bindings.id`; string, optional)
  - `kind` (`post/api/workspaces/workspaceId/automation-templates/templateId/install/preview.response.200.bindings.kind`; string, optional)
    - one of `"sequence"`, `"flow"`, `"custom_field"`
  - `required` (`post/api/workspaces/workspaceId/automation-templates/templateId/install/preview.response.200.bindings.required`; boolean, optional)
  - `allow_skip` (`post/api/workspaces/workspaceId/automation-templates/templateId/install/preview.response.200.bindings.allow_skip`; boolean, optional)
  - `options` (`post/api/workspaces/workspaceId/automation-templates/templateId/install/preview.response.200.bindings.options`; array<object>, optional)
  - `optionsTruncated` (`post/api/workspaces/workspaceId/automation-templates/templateId/install/preview.response.200.bindings.optionsTruncated`; boolean, optional)

### 400

Invalid selection or destination

#### Example

```json
{
  "success": true,
  "error": "string",
  "details": {}
}
```

- `success` (`post/api/workspaces/workspaceId/automation-templates/templateId/install/preview.response.400.success`; boolean, optional)
- `error` (`post/api/workspaces/workspaceId/automation-templates/templateId/install/preview.response.400.error`; string, optional)
- `details` (`post/api/workspaces/workspaceId/automation-templates/templateId/install/preview.response.400.details`; object, optional, nullable)

### 401

Authentication required

#### Example

```json
{
  "success": true,
  "error": "string",
  "details": {}
}
```

- `success` (`post/api/workspaces/workspaceId/automation-templates/templateId/install/preview.response.401.success`; boolean, optional)
- `error` (`post/api/workspaces/workspaceId/automation-templates/templateId/install/preview.response.401.error`; string, optional)
- `details` (`post/api/workspaces/workspaceId/automation-templates/templateId/install/preview.response.401.details`; object, optional, nullable)

### 403

Source and destination workspace access required

#### Example

```json
{
  "success": true,
  "error": "string",
  "details": {}
}
```

- `success` (`post/api/workspaces/workspaceId/automation-templates/templateId/install/preview.response.403.success`; boolean, optional)
- `error` (`post/api/workspaces/workspaceId/automation-templates/templateId/install/preview.response.403.error`; string, optional)
- `details` (`post/api/workspaces/workspaceId/automation-templates/templateId/install/preview.response.403.details`; object, optional, nullable)

### 404

Workspace, template or selected resource not found

#### Example

```json
{
  "success": true,
  "error": "string",
  "details": {}
}
```

- `success` (`post/api/workspaces/workspaceId/automation-templates/templateId/install/preview.response.404.success`; boolean, optional)
- `error` (`post/api/workspaces/workspaceId/automation-templates/templateId/install/preview.response.404.error`; string, optional)
- `details` (`post/api/workspaces/workspaceId/automation-templates/templateId/install/preview.response.404.details`; object, optional, nullable)

### 409

Unresolved dependencies, incompatible destination fields, or undecided required binding slots; details contains the repair issues

#### Example

```json
{
  "success": true,
  "error": "string",
  "details": {}
}
```

- `success` (`post/api/workspaces/workspaceId/automation-templates/templateId/install/preview.response.409.success`; boolean, optional)
- `error` (`post/api/workspaces/workspaceId/automation-templates/templateId/install/preview.response.409.error`; string, optional)
- `details` (`post/api/workspaces/workspaceId/automation-templates/templateId/install/preview.response.409.details`; object, optional, nullable)

### 500

Database or installation failure

#### Example

```json
{
  "success": true,
  "error": "string",
  "details": {}
}
```

- `success` (`post/api/workspaces/workspaceId/automation-templates/templateId/install/preview.response.500.success`; boolean, optional)
- `error` (`post/api/workspaces/workspaceId/automation-templates/templateId/install/preview.response.500.error`; string, optional)
- `details` (`post/api/workspaces/workspaceId/automation-templates/templateId/install/preview.response.500.details`; object, optional, nullable)


Source: https://developer.channelautomations.com/api/post-api-workspaces-workspace-id-automation-templates-template-id-install-preview/index.md
