Skip to content

Zoho: Update a user group

Zoho userGroups.updateGroup: arguments, response, policy and SDK examples.

← User groups operations · Get started

Operation zoho.updategroup

Provider route: PUT /crm/v8/settings/user_groups/{group}. 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["userGroups"]["updateGroup"]>[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.userGroups.updateGroup(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.user_groups.update_group(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.groupstringRequired within parentOne of: 1234567890
bodyobjectRequired within parentRequest body schema for updating a user group.
Additional keys: not allowed
body.user_groupsarrayRequired within parentSpecify an array containing one user group object to update.
Maximum items: 1
body.user_groups[]objectEach itemSpecify the updated details for the user group, including the name, optional description, and member sources.
Additional keys: not allowed
body.user_groups[].descriptionJSONOptionalSpecify an updated text description for the user group, or null to remove the description.
body.user_groups[].description (anyOf 1)stringAlternativeSpecify the updated text description for the user group.
Maximum length: 250
body.user_groups[].description (anyOf 2)nullAlternativeUse null to remove the existing description.
body.user_groups[].namestringRequired within parentThe name to be updated for the user group. Accepts alphanumeric characters. Note that the name must be unique for each group.
Maximum length: 250
body.user_groups[].sourcesarrayRequired within parentSpecify the updated array of member sources for the user group. Replaces all existing sources.
Maximum items: 200
body.user_groups[].sources[]objectEach itemSpecify one member source entry to add to the user group, including the source type, identifier, and optional flags.
Additional keys: not allowed
body.user_groups[].sources[].sourceobjectRequired within parentSpecify the identifier of the source to add to the user group.
Additional keys: not allowed
body.user_groups[].sources[].source.idstringRequired within parentSpecify the unique ID of the user, role, or territory to add as a member source.
Maximum length: 19
body.user_groups[].sources[].sub_territoriesJSONOptionalSpecify whether to include members from sub-territories when the source type is territories.
Possible values:
true - Include members from sub-territories.
false - Do not include members from sub-territories.
body.user_groups[].sources[].sub_territories (anyOf 1)booleanAlternativeSpecify true to include members from sub-territories, or false to exclude them.
body.user_groups[].sources[].sub_territories (anyOf 2)nullAlternativeUse null to omit the sub-territories flag.
body.user_groups[].sources[].subordinatesJSONOptionalSpecify whether to include users in subordinate roles when the source type is roles or territories.
Possible values:
true - Include users in subordinate roles.
false - Do not include users in subordinate roles.
body.user_groups[].sources[].subordinates (anyOf 1)booleanAlternativeSpecify true to include users in subordinate roles, or false to exclude them.
body.user_groups[].sources[].subordinates (anyOf 2)nullAlternativeUse null to omit the subordinates flag.
body.user_groups[].sources[].typestringRequired within parentSpecify the type of the member source being updated for the user group.
Possible values:
territories - Add a CRM territory as a member source.
roles - Add a CRM role as a member source.
users - Add individual CRM users as a member source.
One of: territories, roles, users

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

FieldTypePresenceDescription and constraints
$objectRootResponse schema for a successful user group update.
Additional keys: not allowed
user_groupsarrayRequired within parentRepresents the array containing the result of the user group update operation.
Maximum items: 1
user_groups[]objectEach itemRepresents the update result for the user group, including the status, result code, message, and the group ID.
Additional keys: not allowed
user_groups[].codestringRequired within parentRepresents the result code for the user group update operation.
Possible values:
SUCCESS - The user group update succeeds.
Known values: SUCCESS
user_groups[].detailsobjectRequired within parentRepresents additional details about the updated user group.
Additional keys: not allowed
user_groups[].details.idstringRequired within parentRepresents the unique ID of the updated user group.
Maximum length: 19
user_groups[].messagestringRequired within parentRepresents the result message for the user group update operation.
Maximum length: 500
user_groups[].statusstringRequired within parentRepresents the status of the user group update operation.
Possible values:
success - The user group update succeeds.
Known values: success

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