---
title: "Enable a sink template"
method: POST
path: "/api/v2/customSinkPacks/enableTemplate"
tags: ["Custom Sink Packs"]
---

# Enable a sink template

`POST /api/v2/customSinkPacks/enableTemplate`

## Request

- Base URL: `https://zeropath.com`
- URL: `https://zeropath.com/api/v2/customSinkPacks/enableTemplate`
- Auth: API key in header `X-ZeroPath-API-Token-Id` and API key in header `X-ZeroPath-API-Token-Secret`

Enable a single sink template from a pack. Interpolates parameter placeholders, creates a CustomSinkDeclaration, and records the activation.

## Request body

- EnableCustomSinkTemplateInput
  - `organizationId` string, required
  - `templateId` string, required: The template to enable
  - `parameterValues` object: Values for template parameter placeholders
  - `globPattern` string: Glob pattern for files this sink applies to
  - `repositoryIds` string[]: Repository IDs to restrict this sink to. When empty, applies org-wide.

## Response `200`

Template enabled successfully

- EnableCustomSinkTemplateResponse
  - `instanceId` string, required
  - `declarationId` string, required

## Other responses

- `400`: Error Response
- `401`: Error Response
- `404`: Error Response

---

[API](https://skmtc.dev/zeropath/apis/zeropath-api.md) - [All operations](https://skmtc.dev/zeropath/apis/zeropath-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zeropath/apis/zeropath-api/revisions/126e9c80ba0d?raw)
