# toggle_deploy_hook

Source: https://modulify.ai/docs/mcp/deploy-hooks/toggle-deploy-hook

Turns one deploy hook on or off without deleting it.

- Title: Turn a deploy hook on or off
- Scope: `config:write`
- Access: Makes changes

A hook that is turned off keeps its URL and its call log. Calls to it are still logged, as `disabled`, but they start nothing until it is turned back on.

They still count toward the 10 calls a minute, so past that they are answered as `rate-limited` and only the first of them is logged. This is the reversible way to stop a hook, and usually what someone means by "stop this hook". See [Deploy hooks](https://modulify.ai/docs/automations/deploy-hooks#turn-a-hook-off).

## Inputs

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `projectId` | string | Yes | The site id. |
| `hookId` | string | Yes | The hook id from `list_deploy_hooks`. |
| `enabled` | boolean | Yes | True to turn it on, false to turn it off. |