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

# Disable a source pack

`POST /api/v2/customSourcePacks/disablePack`

## Request

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

Bulk-disable all templates from a source pack for the organization. Deletes all associated CustomSourceDeclarations.

## Request body

- DisableCustomSourcePackInput
  - `organizationId` string, required
  - `packId` string, required: The pack to disable

## Response `200`

Pack disabled successfully

- DisableCustomSourcePackResponse
  - `disabled` boolean, required
  - `count` integer, required

## Other responses

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