feat(zoho-crm): add updateNotification method for channel renewal#71
Merged
feat(zoho-crm): add updateNotification method for channel renewal#71
Conversation
Add method to update/renew Zoho CRM notification channels before expiration. Zoho notification channels expire after max 7 days, so integrations need to periodically renew them. ## Changes - Add `updateNotification(body)` method using PATCH endpoint - Same validation as enableNotification (channel_id, events, notify_url, token) - Uses `/crm/v8/actions/watch` endpoint with PATCH method ## API Documentation @see https://www.zoho.com/crm/developer/docs/api/v8/notifications/update.html ## Usage ```typescript await api.updateNotification({ watch: [{ channel_id: existingChannelId, events: ['Contacts.all', 'Accounts.all'], channel_expiry: new Date(Date.now() + 7 * 24 * 60 * 60 * 1000).toISOString(), token: verificationToken, notify_url: webhookUrl, }], }); ``` Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Contributor
|
🚀 PR was released in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
updateNotification()method to Zoho CRM API module for renewing notification channelsChanges
packages/v1-ready/zoho-crm/src/api.tsNew Method:
updateNotification(body: NotificationWatchConfig)/crm/v8/actions/watchendpointenableNotification():channel_idrequiredeventsmust be non-empty arraynotify_urlrequiredtokenmax 50 charactersPromise<NotificationResponse>with updated channel detailsAPI Documentation
Zoho CRM Notifications Update API:
https://www.zoho.com/crm/developer/docs/api/v8/notifications/update.html
Usage Example
Method Comparison
enableNotification()updateNotification()disableNotification()getNotificationDetails()Test Plan
Related
This enables automatic webhook renewal in Zoho CRM integrations.
🤖 Generated with Claude Code
📦 Published PR as canary version:
Canary Versions✨ Test out this PR locally via:
npm install @friggframework/api-module-zoho-crm@1.1.0-canary.71.08b1c2c.0 # or yarn add @friggframework/api-module-zoho-crm@1.1.0-canary.71.08b1c2c.0Version
Published prerelease version:
@friggframework/api-module-zoho-crm@2.0.0-next.7Changelog
🚀 Enhancement
@friggframework/api-module-zoho-crm@friggframework/api-module-microsoft-teams,@friggframework/api-module-slack,@friggframework/api-module-42matters,@friggframework/api-module-asana,@friggframework/api-module-attio,@friggframework/api-module-connectwise,@friggframework/api-module-contentful,@friggframework/api-module-contentstack,@friggframework/api-module-crossbeam,@friggframework/api-module-deel,@friggframework/api-module-frigg-scale-test,@friggframework/api-module-frontify,@friggframework/api-module-google-calendar,@friggframework/api-module-google-drive,@friggframework/api-module-helpscout,@friggframework/api-module-hubspot,@friggframework/api-module-ironclad,@friggframework/api-module-linear,@friggframework/api-module-pipedrive,@friggframework/api-module-salesforce,@friggframework/api-module-stripe,@friggframework/api-module-unbabel-projects,@friggframework/api-module-unbabel,@friggframework/api-module-zoho-crm,@friggframework/api-module-zoom🐛 Bug Fix
@friggframework/api-module-microsoft-teams,@friggframework/api-module-slack,@friggframework/api-module-42matters,@friggframework/api-module-asana,@friggframework/api-module-attio,@friggframework/api-module-connectwise,@friggframework/api-module-contentful,@friggframework/api-module-contentstack,@friggframework/api-module-crossbeam,@friggframework/api-module-deel,@friggframework/api-module-frigg-scale-test,@friggframework/api-module-frontify,@friggframework/api-module-google-calendar,@friggframework/api-module-google-drive,@friggframework/api-module-helpscout,@friggframework/api-module-hubspot,@friggframework/api-module-ironclad,@friggframework/api-module-linear,@friggframework/api-module-pipedrive,@friggframework/api-module-salesforce,@friggframework/api-module-stripe,@friggframework/api-module-unbabel-projects,@friggframework/api-module-unbabel,@friggframework/api-module-zoho-crm,@friggframework/api-module-zoomAuthors: 1