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

# Disable a source template

`POST /api/v2/customSourcePacks/disableTemplate`

## Request

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

Disable a single source template instance. Deletes the associated CustomSourceDeclaration.

## Request body

- DisableCustomSourceTemplateInput
  - `organizationId` string, required
  - `instanceId` string, required: The template instance to disable

## Response `200`

Template disabled successfully

- DisableCustomSourceTemplateResponse
  - `disabled` boolean, 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)
