---
title: "Toggle custom sink declaration"
method: POST
path: "/api/v2/customSinks/toggle"
tags: ["Custom Sinks"]
---

# Toggle custom sink declaration

`POST /api/v2/customSinks/toggle`

## Request

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

Enable or disable a custom sink declaration without deleting it.

## Request body

- ToggleCustomSinkInput
  - `organizationId` string
  - `declarationId` string, required
  - `enabled` boolean, required

## Response `200`

Successful response

- object
  - `success` boolean
  - `enabled` boolean

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