Skip to content

Zoho: Update a Specific Assignment Rule

Zoho assignmentRules.updateAssignmentRuleById: arguments, response, policy and SDK examples.

← Assignment rules operations · Get started

Operation zoho.updateassignmentrulebyid

Provider route: PUT /crm/v8/settings/automation/assignment_rules/{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["assignmentRules"]["updateAssignmentRuleById"]>[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.assignmentRules.updateAssignmentRuleById(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.assignment_rules.update_assignment_rule_by_id(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 parentMaximum length: 19
Minimum length: 1
Pattern: ^[1-9][0-9]{0,18}$
queryobjectRequired within parentAdditional keys: not allowed
query.modulestringRequired within parentMaximum length: 100
bodyModelOptionalExpand Update a Specific Assignment Rule — request body — body

Referenced models: Update a Specific Assignment Rule — request body — body

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

FieldTypePresenceDescription and constraints
$ModelRootExpand Clone Assignment Rule — response body

Referenced models: Clone Assignment Rule — response body

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

Clone Assignment Rule — response body
FieldTypePresenceDescription and constraints
$objectRootSuccessful API operation completed.
Additional keys: not allowed
assignment_rulesarrayOptionalRepresents the Assignment Rules returned for the Assignment Rule operation.
Maximum items: 1
Minimum items: 1
assignment_rules[]ModelEach itemExpand Clone Assignment Rule — response body — assignment rules item
details of assignment rule created/cloned/updated/deleted

Referenced models: Clone Assignment Rule — response body — assignment rules item

Update a Specific Assignment Rule — request body — body
FieldTypePresenceDescription and constraints
$objectRootRequest body for creating Assignment Rule.
Additional keys: not allowed
assignment_rulesarrayRequired within parentArray of Assignment Rule objects to be created.
Maximum items: 1
Minimum items: 1
assignment_rules[]objectEach itemSpecify each Assignment Rules entry in the Assignment Rule request.
Additional keys: not allowed
assignment_rules[].api_namestringOptionalSpecify the aPI name of the rule.
Maximum length: 100
Minimum length: 1
assignment_rules[].default_assigneeModelOptionalExpand Create an Assignment Rule — request body — body assignment rules item default assignee
assignment_rules[].descriptionstringOptionalPurpose of the Assignment Rule.
Maximum length: 250
assignment_rules[].namestringOptionalSpecify the name to be displayed for the Assignment Rule.
Maximum length: 100
Minimum length: 1
assignment_rules[].rule_entriesarrayOptionalSpecify the list of rule entries for creation, update or deletion. To delete an existing rule entry, provide the ID of the rule entry to be deleted and set _delete field as null in the request body. To update an existing rule entry, provide the ID of the rule entry to be updated along with the fields to be updated in the request body. To create a new rule entry, do not provide ID field and provide details of the new rule entry in the request body.
Maximum items: 200
Minimum items: 1
assignment_rules[].rule_entries[]JSONEach itemSpecify each rule entries entry in the Assignment Rule request.
assignment_rules[].rule_entries[] (anyOf 1)ModelAlternativeExpand Update a Specific Assignment Rule — request body — body assignment rules item rule entries item Rule entry request object to delete
assignment_rules[].rule_entries[] (anyOf 2)ModelAlternativeExpand Clone Assignment Rule Entries — request body — body assignment rules item rule entries item
assignment_rules[].rule_entries[] (anyOf 3)ModelAlternativeExpand Create an Assignment Rule — request body — body assignment rules item rule entries item

Referenced models: Create an Assignment Rule — request body — body assignment rules item default assignee, Create an Assignment Rule — request body — body assignment rules item rule entries item, Update a Specific Assignment Rule — request body — body assignment rules item rule entries item Rule entry request object to delete, Clone Assignment Rule Entries — request body — body assignment rules item rule entries item

Clone Assignment Rule — response body — assignment rules item
FieldTypePresenceDescription and constraints
$objectRootDetails of successfully created/cloned/deleted/updated Assignment Rules, including code, message, and status.
Additional keys: not allowed
codestringOptionalRepresents the status code that identifies the result of the Assignment Rule operation.
Possible values:
**SUCCESS** - Represents success.
Known values: SUCCESS
detailsModelOptionalExpand Clone Assignment Rule — response body — assignment rules item details
messagestringOptionalRepresents the message that describes the result of the Assignment Rule operation.
Maximum length: 255
statusstringOptionalRepresents the status of the Assignment Rule operation.
Possible values:
**success** - Represents success.
Known values: success

Referenced models: Clone Assignment Rule — response body — assignment rules item details

Create an Assignment Rule — request body — body assignment rules item default assignee
FieldTypePresenceDescription and constraints
$JSONRootFallback assignee when no rule entry matches. Currently supports user type. Additional types (for example, queue) may be added in future versions.
$ (anyOf 1)ModelAlternativeExpand Create an Assignment Rule — request body — body / assignment_rules / item / default_assignee / type: user

Referenced models: Create an Assignment Rule — request body — body / assignment_rules / item / default_assignee / type: user

Create an Assignment Rule — request body — body assignment rules item rule entries item
FieldTypePresenceDescription and constraints
$objectRootDefines entries with matching and assignment logic for record processing.
Additional keys: not allowed
assign_toModelRequired within parentExpand Create an Assignment Rule — request body — body assignment rules item rule entries item assign to
This field defines the set of users to whom the records that enter the current rule entry must be assigned. (Required)
criteriaModelOptionalExpand Create an Assignment Rule — request body — body assignment rules item rule entries item criteria
Defines the record criteria based on which records will be filtered and assignment logic defined for current rule entry will be applied. If criteria is not provided or is null, all records entering current rule entry will be assigned based on current rule entry's assignment logic.
followup_actionsarray or nullOptionalDefines the list of different actions to be executed after owner assignment.
Maximum items: 1
Minimum items: 1
followup_actions[]ModelEach itemExpand Create an Assignment Rule — request body — body assignment rules item rule entries item followup actions item
user_availability_based_onarray or nullOptionalDefines additional availability checks to be performed before choosing a user as owner. A user is assigned as owner only if it satisfies the mentioned availability conditions.
Maximum items: 2
user_availability_based_on[]stringEach itemSpecify each user availability based on entry in the Assignment Rule request.
Possible values:
**online_status** - Represents online status.
**shift_timing** - Represents shift timing.
One of: online_status, shift_timing

Referenced models: Create an Assignment Rule — request body — body assignment rules item rule entries item assign to, Create an Assignment Rule — request body — body assignment rules item rule entries item followup actions item, Create an Assignment Rule — request body — body assignment rules item rule entries item criteria

Update a Specific Assignment Rule — request body — body assignment rules item rule entries item Rule entry request object to delete
FieldTypePresenceDescription and constraints
$objectRootRule entry request object to delete.
Additional keys: not allowed
_deletenullRequired within parentTo delete an existing rule entry, provide the ID of the rule entry to be deleted and set _delete field as null in the request body.
idstringRequired within parentID of the resource.
Maximum length: 19
Minimum length: 1
Pattern: ^[1-9][0-9]{0,18}$
Clone Assignment Rule — response body — assignment rules item details
FieldTypePresenceDescription and constraints
$objectRootRepresents additional details about the Assignment Rule operation result.
Additional keys: not allowed
idstringRequired within parentID of the resource.
Maximum length: 19
Minimum length: 1
Pattern: ^[1-9][0-9]{0,18}$
rule_entriesarrayOptionalRepresents the rule entries returned for the Assignment Rule operation.
Maximum items: 200
Minimum items: 1
rule_entries[]objectEach itemRepresents each rule entries entry returned for the Assignment Rule operation.
Additional keys: not allowed
rule_entries[].idstringRequired within parentID of the resource.
Maximum length: 19
Minimum length: 1
Pattern: ^[1-9][0-9]{0,18}$
Create an Assignment Rule — request body — body assignment rules item rule entries item followup actions item
FieldTypePresenceDescription and constraints
$JSONRootFollowup action to execute after ownership assignment. Currently supports tasks. Additional types may be added in future versions.
$ (anyOf 1)ModelAlternativeExpand Create an Assignment Rule — request body — body / assignment_rules / item / rule_entries / item / followup_actions / item / type: tasks

Referenced models: Create an Assignment Rule — request body — body / assignment_rules / item / rule_entries / item / followup_actions / item / type: tasks

Create an Assignment Rule — request body — body / assignment_rules / item / default_assignee / type: user resource User resource reference for Assignment Rule entry
FieldTypePresenceDescription and constraints
$objectRootUser resource reference for Assignment Rule entry.
Additional keys: not allowed
idstringRequired within parentSpecify the iD of the user. Refer to the [Users API](users.yaml#$.paths./users.get) resource for valid values.
Maximum length: 19
Minimum length: 1
Pattern: ^[1-9][0-9]{0,18}$

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