Skip to content

Zoho: Update full notification details

Zoho notifications.updateNotificationDetails: arguments, response, policy and SDK examples.

← Notifications operations · Get started

Operation zoho.updatenotificationdetails

Provider route: PUT /crm/v8/actions/watch. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/zoho with npm, or alter-sdk-zoho with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { ZohoIntegration } from "@alter-ai/zoho";
async function execute(input: Parameters<ZohoIntegration["notifications"]["updateNotificationDetails"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new ZohoIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.notifications.updateNotificationDetails(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_zoho import ZohoIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = ZohoIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.notifications.update_notification_details(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
bodyobjectRequired within parentContains the complete notification channel configurations that will replace the existing settings.
Additional keys: not allowed
body.watcharrayOptionalSpecify the list of notification channel replacements.
Maximum items: 50
body.watch[]objectEach itemSpecify the complete replacement configuration for a single notification channel.
Additional keys: not allowed
body.watch[].channel_expirystringOptionalSpecify the expiry date and time for the notification channel.
Format: date-time
body.watch[].channel_idstringRequired within parentSpecify the identifier of the notification channel to update. Always returned in the response.
Maximum length: 64
body.watch[].eventsarrayRequired within parentSpecify the complete list of CRM module events to subscribe to, replacing the current event list.
Maximum items: 50
body.watch[].events[]stringEach itemSpecify a CRM module event name (for example, Leads.create or Contacts.edit).
Maximum length: 128
body.watch[].notification_conditionarrayOptionalSpecify the field-selection conditions to replace the existing conditions for the notification channel.
Maximum items: 2
body.watch[].notification_condition[]objectEach itemSpecify the configuration for a single field-selection condition.
Additional keys: not allowed
body.watch[].notification_condition[].typestringRequired within parentSpecify the condition type.
Possible values:
field_selection - The condition uses field selection criteria.
One of: field_selection
body.watch[].notify_on_related_actionbooleanOptionalIndicate whether the notification channel should be triggered by actions on records related to the subscribed module.
Possible values:
true - Notifications are sent for related record actions.
false - Notifications are sent only for direct record actions.
body.watch[].notify_urlstringRequired within parentSpecify the callback URL for the notification channel.
Maximum length: 255
body.watch[].return_affected_field_valuesbooleanOptionalIndicate whether the notification payload should include the changed field values from the affected record.
Possible values:
true - The notification payload includes updated field values.
false - The notification payload does not include field values.
body.watch[].tokenstringOptionalSpecify the verification token to be included in notification callbacks.
Maximum length: 256

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)objectAlternativeContains the results of the full notification channel replacement.
Additional keys: not allowed
$ (anyOf 1).watcharrayRequired within parentRepresents the list of replacement results, one entry per channel submitted in the request.
Maximum items: 50
$ (anyOf 1).watch[]objectEach itemRepresents the replacement result for a single notification channel.
Additional keys: not allowed
$ (anyOf 1).watch[].codestringRequired within parentRepresents the result code for the channel replacement operation.
Maximum length: 32
$ (anyOf 1).watch[].detailsobjectRequired within parentContains the event channel details for the replaced notification channel.
Additional keys: not allowed
$ (anyOf 1).watch[].details.eventsarrayRequired within parentRepresents the list of event-channel subscriptions for the replaced notification channel.
Maximum items: 50
$ (anyOf 1).watch[].details.events[]objectEach itemRepresents the details of a single event-channel subscription after the replacement.
Additional keys: not allowed
$ (anyOf 1).watch[].details.events[].channel_expirystringRequired within parentRepresents the expiry date and time of the replaced notification channel. Always returned in the response.
Format: date-time
$ (anyOf 1).watch[].details.events[].channel_idstringRequired within parentRepresents the identifier of the notification channel after replacement. Always returned in the response.
Maximum length: 64
$ (anyOf 1).watch[].details.events[].resource_idstringRequired within parentRepresents the unique identifier of the CRM resource for the replaced event channel subscription. Always returned in the response.
Maximum length: 64
$ (anyOf 1).watch[].details.events[].resource_namestringRequired within parentRepresents the name of the CRM resource for the replaced event channel subscription. Always returned in the response.
Maximum length: 128
$ (anyOf 1).watch[].details.events[].resource_uristringRequired within parentRepresents the URI of the CRM resource for the replaced event channel subscription. Always returned in the response.
Maximum length: 255
$ (anyOf 1).watch[].messagestringRequired within parentRepresents the status message for the channel replacement result.
Maximum length: 255
$ (anyOf 1).watch[].statusstringRequired within parentRepresents the status of the channel replacement result.
Maximum length: 32
$ (anyOf 2)ModelAlternativeExpand Create notification channels — response body — watch

Referenced models: Create notification channels — response body — watch

Create notification channels — response body — watch
FieldTypePresenceDescription and constraints
$objectRootContains the partial create results, where each entry in the watch array is either a success or an error.
Additional keys: not allowed
watcharrayOptionalRepresents the list of result entries, where each item is either a successful create result or an error response.
Maximum items: 50
watch[]JSONEach item
watch[] (anyOf 1)ModelAlternativeExpand Create notification channels — response body — watch / watch / item / code: SUCCESS, status: success
watch[] (anyOf 2)ModelAlternativeExpand Create notification channels — response body — watch / watch / item / status: error

Referenced models: Create notification channels — response body — watch / watch / item / status: error, Create notification channels — response body — watch / watch / item / code: SUCCESS, status: success

Create notification channels — response body — watch / watch / item / status: error
FieldTypePresenceDescription and constraints
$objectRootRepresents the standard error response structure returned when a request fails.
Additional keys: not allowed
codestringRequired within parentRepresents the specific error code identifying the type of failure.
Known values: INVALID_DATA, INVALID_QUERY, NOT_SUBSCRIBED, EXPECTED_PARAM_MISSING, LIMIT_REACHED, NOT_SUPPORTED, INVALID_REQUEST_METHOD, AUTHORIZATION_FAILED, OAUTH_SCOPE_MISMATCH, NO_PERMISSION, INVALID_URL_PATTERN, INTERNAL_ERROR, RATE_LIMIT_EXCEEDED, SERVICE_UNAVAILABLE, INVALID_MODULE, MANDATORY_NOT_FOUND, EXPECTED_FIELD_MISSING, AMBIGUITY_DURING_PROCESSING, DEPENDENT_FIELD_MISSING
detailsModelOptionalExpand Create notification channels — response body — watch / watch / item / status: error details
messagestringRequired within parentRepresents the error message describing the issue.
Maximum length: 1000
statusstringRequired within parentRepresents the response status.
**Possible values:**
**error** - Indicates an error response.
Known values: error
Default: error

Referenced models: Create notification channels — response body — watch / watch / item / status: error details

Create notification channels — response body — watch / watch / item / code: SUCCESS, status: success
FieldTypePresenceDescription and constraints
$objectRootRepresents a successful create result for a single notification channel.
Additional keys: not allowed
codestringOptionalRepresents the result code for a successful operation.
**Possible values:**
**SUCCESS** - The operation completed successfully.
Known values: SUCCESS
detailsobjectOptionalCreated event channel details.
Additional keys: allowed
messagestringOptionalResult message.
Maximum length: 255
statusstringOptionalStatus string.
Known values: success
Create notification channels — response body — watch / watch / item / status: error details
FieldTypePresenceDescription and constraints
$objectRootRepresents the detailed error information associated with a specific parameter or field that caused the request to fail.
Additional keys: not allowed
ambiguity_due_toarrayOptionalRepresents the list of fields that caused ambiguity during request processing.
Maximum items: 2
ambiguity_due_to[]objectEach itemRepresents a field that contributed to the ambiguity during processing.
Additional keys: not allowed
ambiguity_due_to[].api_namestringRequired within parentRepresents the API name of the field that caused ambiguity.
Maximum length: 64
ambiguity_due_to[].json_pathstringRequired within parentRepresents the JSON path indicating the location of the ambiguous field in the request payload.
Maximum length: 256
api_namestringOptionalRepresents the API name of the parameter or field that caused the error.
Maximum length: 64
dependeeobjectOptionalRepresents the details of a required dependent field that was missing from the request.
Additional keys: not allowed
dependee.api_namestringRequired within parentRepresents the API name of the missing dependent field.
Maximum length: 64
dependee.json_pathstringRequired within parentRepresents the JSON path indicating the location of the missing dependent field in the request payload.
Maximum length: 256
expected_data_typestringOptionalRepresents the expected data type for the parameter or field that caused the error.
Maximum length: 64
expected_fieldsarrayOptionalRepresents the list of fields required when at least one of several expected fields is missing.
Maximum items: 2
expected_fields[]objectEach itemRepresents a field that is required but was not found in the request.
Additional keys: not allowed
expected_fields[].api_namestringRequired within parentRepresents the API name of the required field.
Maximum length: 64
expected_fields[].json_pathstringRequired within parentRepresents the JSON path indicating the location of the required field in the request payload.
Maximum length: 256
json_pathstringOptionalRepresents the JSON path indicating the location of the error in the request payload.
Maximum length: 256
maximum_lengthJSONOptional
maximum_length (anyOf 1)integerAlternativeRepresents the maximum allowed length for the parameter or field that caused the error.
Format: int32
maximum_length (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
supported_valuesarrayOptionalRepresents the list of supported values for the parameter or field that caused the error.
Maximum items: 2
supported_values[]stringEach itemRepresents a single supported value for the parameter or field.
Maximum length: 64

SDK function policy ID: zoho.updatenotificationdetails. Catalog operation: updateNotificationDetails. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.