npm_hook_update
Update a webhook's endpoint and signing secret in a single call. Both values are always written, so pass the current secret to change only the URL.
Instructions
Replace a webhook's endpoint AND signing secret. Both are required: the registry PUT overwrites the hook config, so this call always rotates the secret to whatever you pass — supply the current secret if you only mean to change the endpoint. The returned hook object has the secret redacted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Hook ID | |
| secret | Yes | Signing secret to store. Always written; pass the existing secret to leave it effectively unchanged. | |
| endpoint | Yes | HTTPS URL for the hook (required — the PUT replaces the whole config) |