Skip to content

Zoho: Custom View update

Zoho customViews.updateCustomView: arguments, response, policy and SDK examples.

← Custom views operations · Get started

Operation zoho.updatecustomview

Provider route: PUT /crm/v8/settings/custom_views/{id}. 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["customViews"]["updateCustomView"]>[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.customViews.updateCustomView(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.custom_views.update_custom_view(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.idstringRequired within parentFormat: int64
Maximum length: 25
queryobjectRequired within parentAdditional keys: not allowed
query.modulestringRequired within parentMaximum length: 25
bodyobjectRequired within parentRepresents the request body envelope for updating a specific Custom View by its ID.
Additional keys: not allowed
body.custom_viewsarrayRequired within parentSpecify the list of Custom View configurations to update.
Maximum items: 1
body.custom_views[]ModelEach itemExpand Custom View update — request body — body custom views item

Referenced models: Custom View update — request body — body custom views item

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

FieldTypePresenceDescription and constraints
$ModelRootExpand Sort Order by ID — response body

Referenced models: Sort Order by ID — response body

17 more schemas are linked from the tables above, on the schema pages.

Custom View update — request body — body custom views item
FieldTypePresenceDescription and constraints
$objectRootRepresents the configuration for updating a Custom View by its ID, including the fields to update.
Additional keys: not allowed
access_typestringOptionalRepresents the access type for the Custom View.
Possible values:
**shared** - The view is shared with selected users, roles, groups, or territories.
**public** - The view is accessible to all users in the organization.
**only_to_me** - The view is private and accessible only to the creator.
One of: shared, public, only_to_me
categorystringOptionalRepresents the category for the Custom View.
Possible values:
**public_views** - Views accessible to all users in the organization.
**other_users_views** - Views created by other users in the organization.
**shared_with_me** - Views shared with the current user.
**created_by_me** - Views created by the current user.
One of: public_views, other_users_views, shared_with_me, created_by_me
criteriaModelOptionalExpand Custom Views — request body — body custom views item criteria
cross_filtersModelOptionalExpand Custom Views — request body — body custom views item cross filters
favoritenull or integerOptionalRepresents the favorite order for the Custom View. A null value indicates the view is not marked as a favorite.
Format: int32
fieldsModelOptionalExpand Custom Views — request body — body custom views item fields
lockedbooleanOptionalIndicates whether the Custom View is locked.
Possible values:
**true** - The view is locked.
**false** - The view is not locked.
namestringOptionalRepresents the name of the Custom View.
Maximum length: 50
shared_toModelOptionalExpand Custom Views — request body — body custom views item shared to
sort_byJSONOptionalRepresents the field used to sort the records in the Custom View.
sort_by (anyOf 1)ModelAlternativeExpand Sort Order — request body — body custom views item sort by
sort_by (anyOf 2)nullAlternativeNo sort is applied
sort_orderJSONOptionalRepresents the sort order applied to the records in the Custom View.
sort_order (anyOf 1)stringAlternativeRepresents the sort order for the Custom View.
Possible values:
**asc** - Ascending order.
**desc** - Descending order.
One of: asc, desc
sort_order (anyOf 2)nullAlternativeRepresents no sort order applied to the Custom View.

Referenced models: Custom Views — request body — body custom views item criteria, Custom Views — request body — body custom views item cross filters, Custom Views — request body — body custom views item fields, Sort Order — request body — body custom views item sort by, Custom Views — request body — body custom views item shared to

Sort Order by ID — response body
FieldTypePresenceDescription and constraints
$objectRootRepresents the bulk update success response containing a list of updated Custom View items.
Additional keys: not allowed
custom_viewsarrayRequired within parentRepresents the list of Custom View update success items.
Maximum items: 200
custom_views[]ModelEach itemExpand Sort Order by ID — response body — custom views item

Referenced models: Sort Order by ID — response body — custom views item

Custom Views — request body — body custom views item criteria
FieldTypePresenceDescription and constraints
$JSONRootRepresents the filter criteria of the Custom View
$ (anyOf 1)ModelAlternativeExpand Related Records — request body — query filters
$ (anyOf 2)nullAlternativeNo criteria applied - the custom view returns all records

Referenced models: Related Records — request body — query filters

Custom Views — request body — body custom views item cross filters
FieldTypePresenceDescription and constraints
$JSONRootRepresents the cross-filter criteria of the Custom View
$ (anyOf 1)ModelAlternativeExpand Get records from a specified module — request body — query cross filters
$ (anyOf 2)nullAlternativeNo cross-filter criteria applied

Referenced models: Get records from a specified module — request body — query cross filters

Custom Views — request body — body custom views item fields
FieldTypePresenceDescription and constraints
$arrayRootRepresents the list of fields included in the Custom View, each with display and pin configuration details.
Maximum items: 250
$[]objectEach itemRepresents a field included in the Custom View, with configuration details such as pin status, pin order, and display width.
Additional keys: not allowed
$[]._pinbooleanOptionalIndicates whether the field is pinned in the Custom View.
Possible values:
**true** - The field is pinned.
**false** - The field is not pinned.
$[]._pin_orderintegerOptionalRepresents the order of the pinned field within the Custom View.
Format: int32
$[]._widthintegerOptionalRepresents the display width of the field in pixels.
Format: int32
$[].api_namestring or nullOptionalRepresents the API name of the field included in the Custom View.
Maximum length: 255
$[].idstring or nullOptionalRepresents the unique ID of the field included in the Custom View.
Format: int64
Maximum length: 25
Sort Order — request body — body custom views item sort by
FieldTypePresenceDescription and constraints
$objectRootRepresents a reference to a field in the Custom View, identified by its API name and unique ID.
Additional keys: not allowed
api_namestring or nullOptionalRepresents the API name of the field. A null value indicates no field is selected.
Maximum length: 255
idstring or nullOptionalRepresents the unique ID of the field. A null value indicates no field is selected.
Format: int64
Maximum length: 25
Custom Views — request body — body custom views item shared to
FieldTypePresenceDescription and constraints
$array or nullRootRepresents the list of users, roles, groups, or territories the Custom View is shared with.
Maximum items: 250
$[]objectEach itemShared To Object
Additional keys: not allowed
$[].idstringRequired within parentID of the user/group
Format: int64
Maximum length: 25
$[].namestringOptionalName of the user/group
Maximum length: 255
$[].subordinatesboolean or nullOptionalSpecify true if subordinates are included, false otherwise
$[].typestringRequired within parentRepresents the type of the shared-to entity.
Possible values:
**territories** - The view is shared with a territory.
**roles** - The view is shared with a role.
**groups** - The view is shared with a group.
**users** - The view is shared with a specific user.
One of: territories, roles, groups, users
Sort Order by ID — response body — custom views item
FieldTypePresenceDescription and constraints
$objectRootRepresents the successful update response for a Custom View operation, including the status, code, message, and updated view ID.
Additional keys: not allowed
codestringRequired within parentRepresents the success code for the update operation.
Possible values:
**SUCCESS** - The Custom View update completed successfully.
Known values: SUCCESS
detailsobjectRequired within parentRepresents the additional details for the successful update operation.
Additional keys: not allowed
details.idstringRequired within parentRepresents the unique ID of the updated Custom View.
Format: int64
Maximum length: 25
messagestringRequired within parentRepresents the success message for the update operation.
Maximum length: 255
statusstringRequired within parentRepresents the status of the update response.
Possible values:
**success** - The operation was successful.
Known values: success
Related Records — request body — query filters
FieldTypePresenceDescription and constraints
$JSONRootRepresents the top-level filter criterion for data selection, supporting both simple field-based filters and complex grouped filters with logical operators.
$ (anyOf 1)ModelAlternativeExpand Related Records — request body — query filters value
$ (anyOf 2)ModelAlternativeExpand Related Records — request body — query / filters / group_operator: AND, OR, and, or

Referenced models: Related Records — request body — query / filters / group_operator: AND, OR, and, or, Related Records — request body — query filters value

SDK function policy ID: zoho.updatecustomview. Catalog operation: updateCustomView. 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.