Skip to content

Zoho: Change Owner — change Owner change Owner Bulk

Zoho changeOwner.changeOwnerBulk: arguments, response, policy and SDK examples.

← Change owner operations · Get started

Operation zoho.changeownerbulk

Provider route: POST /crm/v8/{module}/actions/change_owner. 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["changeOwner"]["changeOwnerBulk"]>[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.changeOwner.changeOwnerBulk(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.change_owner.change_owner_bulk(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.modulestringRequired within parentMaximum length: 255
queryobjectOptionalAdditional keys: not allowed
query.idsstringOptionalMaximum length: 9975
query.notifybooleanOptional
query.owner_idstringOptionalMaximum length: 19
query.related_modulesstringOptionalMaximum length: 2000
bodyobjectRequired within parentSpecify the record IDs and owner details for the bulk owner change request.
Additional keys: not allowed
body.idsarrayRequired within parentSpecify the IDs of the records for which you want to change the owner.
Maximum items: 500
body.ids[]stringEach itemSpecify a record ID.
Maximum length: 19
body.notifyboolean or nullOptionalSpecify whether to notify the new owner via email when the records are assigned.\nPossible values:\ntrue - The new owner is notified via email.\nfalse - The new owner is not notified via email.
body.ownerobjectRequired within parentSpecify the details of the new owner for the records.
Additional keys: not allowed
body.owner.idstringRequired within parentSpecify the user ID of the new owner.
Maximum length: 19
body.related_modulesarrayOptionalSpecify the related modules for which you want to transfer record ownership along with the main record.
Maximum items: 5
body.related_modules[]ModelEach itemExpand Change Owner — change Owner change Owner Bulk — request body — body related modules item

Referenced models: Change Owner — change Owner change Owner Bulk — request body — body related modules item

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)JSONAlternativeSuccessful owner change response
Additional keys: not allowed
$ (anyOf 1).dataarrayOptionalData containing the result of the owner change operation
Maximum items: 500
$ (anyOf 1).data[]objectEach itemResult of the owner change operation for the record
Additional keys: not allowed
$ (anyOf 1).data[].codestringRequired within parentResponse code indicating success
Known values: SUCCESS
$ (anyOf 1).data[].detailsobjectRequired within parentDetails of the updated record
Additional keys: not allowed
$ (anyOf 1).data[].details.idstringRequired within parentThe ID of the updated record
Maximum length: 19
$ (anyOf 1).data[].messagestringRequired within parentSuccess message
Maximum length: 500
$ (anyOf 1).data[].statusstringRequired within parentStatus of the operation
Known values: success
$ (anyOf 2)JSONAlternativePartial bulk change-owner response returned to direct API callers.
Additional keys: not allowed
$ (anyOf 2).dataarrayOptionalPer-record outcome array containing a mix of success and error objects.
Maximum items: 500
$ (anyOf 2).data[]objectEach itemPer-record outcome entry.
Additional keys: allowed
$ (anyOf 2).data[].codestringOptionalOutcome code for this record. `SUCCESS` on success; an error code such as `CANNOT_PROCESS`, `NOT_MERGED`, or `CANNOT_PERFORM_ACTION` on failure.
Maximum length: 100
$ (anyOf 2).data[].statusstringOptionalStatus of the operation for this record.
Known values: success, error
$ (anyOf 3)JSONAlternativePartial bulk change-owner response returned to client SDK callers.
Additional keys: not allowed
$ (anyOf 3).dataarrayOptionalPer-record outcome array containing a mix of success and error objects.
Maximum items: 500
$ (anyOf 3).data[]objectEach itemPer-record outcome entry.
Additional keys: allowed
$ (anyOf 3).data[].codestringOptionalOutcome code for this record. `SUCCESS` on success; an error code such as `CANNOT_PROCESS`, `NOT_MERGED`, or `CANNOT_PERFORM_ACTION` on failure.
Maximum length: 100
$ (anyOf 3).data[].statusstringOptionalStatus of the operation for this record.
Known values: success, error
Change Owner — change Owner change Owner Bulk — request body — body related modules item
FieldTypePresenceDescription and constraints
$objectRootSpecify the API name and record ID of a related module record to transfer to the new owner.
Additional keys: not allowed
api_namestringOptionalSpecify the API name of the related module for which the records are transferred.\nPossible values:\n**Tasks**\n**Events**\n**Calls**\n**Contacts**\n**Deals**
One of: Tasks, Events, Calls, Contacts, Deals
idstringOptionalSpecify the record ID of the related module record to transfer to the new owner.
Maximum length: 19

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