Create Policy from Template
Creates a new policy in a dock using a pre-built platform template as the starting point. The template’s recipe is copied into the new policy, which can then be customized.Path Parameters
| Parameter | Type | Description |
|---|---|---|
dockId | string | The dock ID |
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
templateId | string | Required | The ID of the platform template to use |
name | string | Optional | Custom name for the policy (defaults to the template name) |
Example Request
Response
Error Handling
| Status | Condition |
|---|---|
400 | templateId is missing or invalid |
401 | Missing or invalid API key |
404 | Dock or template not found |
Use List Templates to browse available platform templates before creating a policy from one.