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

# Enable a sink pack

`POST /api/v2/customSinkPacks/enablePack`

## Request

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

Bulk-enable multiple templates from a sink pack in a single transaction. When templateIds is empty, enables all templates in the pack.

## Request body

- EnableCustomSinkPackInput
  - `organizationId` string, required
  - `packId` string, required: The pack to enable
  - `templateIds` string[]: Specific templates to enable. When empty, enables all templates in the pack.
  - `parameterValuesByTemplate` object: Per-template parameter values, keyed by template ID
  - `repositoryIds` string[]: Repository IDs to restrict all enabled sinks to.

## Response `200`

Pack enabled successfully

- EnableCustomSinkPackResponse
  - `instances` object[], required
    - `instanceId` string, required
    - `templateId` 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)
