---
title: "Enable a source pack"
method: POST
path: "/api/v2/customSourcePacks/enablePack"
tags: ["Custom Source Packs"]
---

# Enable a source pack

`POST /api/v2/customSourcePacks/enablePack`

## Request

- Base URL: `https://zeropath.com`
- URL: `https://zeropath.com/api/v2/customSourcePacks/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 source pack in a single transaction. When templateIds is empty, enables all templates in the pack.

## Request body

- EnableCustomSourcePackInput
  - `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 sources to.

## Response `200`

Pack enabled successfully

- EnableCustomSourcePackResponse
  - `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)
