Skip to main content

disable

client.hooks.disable(id: string): Promise<unknown>

Disables a hook without deleting it.

Prevents the hook from firing while preserving its configuration. The hook can be re-enabled later with .

Parameters

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the hook to disable

Returns

Promise<unknown> — A promise that resolves when the hook has been disabled

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.hooks.disable('id');
console.log(result);