> ## 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: README

> Mass change owner of records. Includes SDK V2 and CLI requests, input constraints, response fields, and Deepline credit cost.

Mass change owner of records.

<Info>
  Tool ID: `zoho_crm_mass_change_owner_mass_change_owner`
</Info>

## Run this action

Use the TypeScript SDK for a single call. Put `ctx.tools.execute(...)` inside a Play when the call should be durable, scheduled, or run across a CSV.

```ts theme={null}
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={null}
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 exposes this shape at `result.toolResponse.raw`. Values below are representative.

```json theme={null}
{
  "data": {
    "data": [
      {
        "status": "success",
        "code": "SCHEDULED",
        "message": "change owner is successfully scheduled",
        "details": {
          "job_id": "job_123"
        }
      }
    ]
  }
}
```

Use `deepline tools get 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={null}
  {
    "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={null}
  {
    "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](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)
