> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Zoho CRM: Mass Change Owner Mass Change Owner

> Change the owner of every Zoho CRM record in a custom view or matching criteria. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Change the owner of every Zoho CRM record in a custom view or matching criteria.

> [!NOTE]
>
> Tool ID: `zoho_crm_mass_change_owner_mass_change_owner`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'zoho_crm_mass_change_owner_mass_change_owner',
  {
    "module": "example",
    "cvid": "example",
    "owner": {
      "id": "id_123"
    }
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute zoho_crm_mass_change_owner_mass_change_owner --input '{
  "module": "example",
  "cvid": "example",
  "owner": {
    "id": "id_123"
  }
}' --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "data": [
      {
        "status": "success",
        "code": "SCHEDULED",
        "message": "change owner is successfully scheduled",
        "details": {
          "job_id": "job_123"
        }
      }
    ]
  }
}
```

Use `deepline describe zoho_crm_mass_change_owner_mass_change_owner --json` for the latest machine-readable contract.

## Input reference

Request body for mass changing owner of records

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.module` | `string` | Yes | — | The API name of the module Maximum length: 255. |
| `payload.cvid` | `string` | Yes | — | Custom view ID Maximum length: 19. |
| `payload.owner` | `object` | Yes | — | New owner information |
| `payload.territory` | `object` | No | — | Territory information |
| `payload.criteria` | `object` | No | — | — |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Request body for mass changing owner of records",
    "properties": {
      "module": {
        "type": "string",
        "description": "The API name of the module",
        "maxLength": 255
      },
      "cvid": {
        "type": "string",
        "description": "Custom view ID",
        "maxLength": 19
      },
      "owner": {
        "type": "object",
        "description": "New owner information",
        "properties": {
          "id": {
            "type": "string",
            "description": "Owner ID",
            "maxLength": 19
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "territory": {
        "type": "object",
        "description": "Territory information",
        "properties": {
          "id": {
            "type": "string",
            "description": "Territory ID",
            "maxLength": 19
          },
          "include_child": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether to include child territories in the mass change operation"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "criteria": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "required": [
      "module",
      "cvid",
      "owner"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Response containing the scheduled job details |
| `result.data.data` | `array` | Yes | — | Array of response data Maximum items: 1. |
| `result.data.data[].status` | `"success"` | Yes | — | Status of the operation Allowed: `success`. |
| `result.data.data[].code` | `"SCHEDULED"` | Yes | — | Response code Allowed: `SCHEDULED`. |
| `result.data.data[].message` | `"change owner is successfully scheduled"` | Yes | — | Response message Allowed: `change owner is successfully scheduled`. |
| `result.data.data[].details` | `object` | Yes | — | Additional details about the scheduled job |
| `result.data.data[].details.job_id` | `string` | Yes | — | Unique identifier for the scheduled job Maximum length: 19. |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Response containing the scheduled job details",
        "properties": {
          "data": {
            "type": "array",
            "description": "Array of response data",
            "maxItems": 1,
            "items": {
              "type": "object",
              "description": "Job scheduling details",
              "properties": {
                "status": {
                  "type": "string",
                  "description": "Status of the operation",
                  "enum": [
                    "success"
                  ]
                },
                "code": {
                  "type": "string",
                  "description": "Response code",
                  "enum": [
                    "SCHEDULED"
                  ]
                },
                "message": {
                  "type": "string",
                  "description": "Response message",
                  "enum": [
                    "change owner is successfully scheduled"
                  ]
                },
                "details": {
                  "type": "object",
                  "description": "Additional details about the scheduled job",
                  "properties": {
                    "job_id": {
                      "type": "string",
                      "description": "Unique identifier for the scheduled job",
                      "maxLength": 19
                    }
                  },
                  "required": [
                    "job_id"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "status",
                "code",
                "message",
                "details"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.