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

> Update Data Sharing. Zoho CRM Data Sharing Update Data Sharing reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline.

Update Data Sharing.

<Info>
  Tool ID: `zoho_crm_data_sharing_update_data_sharing`
</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_data_sharing_update_data_sharing',
  {
    "data_sharing": [
      {
        "share_type": "private",
        "module": {
          "id": "id_123"
        }
      }
    ]
  },
);

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

### CLI

```bash theme={null}
deepline tools execute zoho_crm_data_sharing_update_data_sharing --input '{
  "data_sharing": [
    {
      "share_type": "private",
      "module": {
        "id": "id_123"
      }
    }
  ]
}' --json
```

## Example response

The SDK exposes this shape at `result.toolResponse.raw`. Values below are representative.

```json theme={null}
{
  "data": {
    "data_sharing": [
      {
        "status": "success",
        "code": "SUCCESS",
        "message": "data sharing settings updated successfully",
        "details": {
          "module": "example"
        }
      }
    ]
  }
}
```

Use `deepline tools get zoho_crm_data_sharing_update_data_sharing --json` for the latest machine-readable contract.

## Input reference

Update Data Sharing Request Body

| Name                   | Type    | Required | Default | Details                                                         |
| ---------------------- | ------- | -------- | ------- | --------------------------------------------------------------- |
| `payload.data_sharing` | `array` | Yes      | —       | List of Data Sharing Settings to be updated Maximum items: 100. |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Update Data Sharing Request Body",
    "properties": {
      "data_sharing": {
        "type": "array",
        "description": "List of Data Sharing Settings to be updated",
        "maxItems": 100,
        "items": {
          "type": "object",
          "description": "Data Sharing Setting to be updated",
          "properties": {
            "share_type": {
              "type": "string",
              "description": "Stores the module-level data sharing permission type",
              "enum": [
                "private",
                "public_read_write",
                "public",
                "public_read_only"
              ]
            },
            "module": {
              "type": "object",
              "description": "Module Information",
              "properties": {
                "api_name": {
                  "type": "string",
                  "description": "API Name of the Module",
                  "maxLength": 100
                },
                "id": {
                  "type": "string",
                  "description": "ID of the Module",
                  "maxLength": 20
                }
              },
              "required": [
                "id"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "share_type",
            "module"
          ],
          "additionalProperties": false
        }
      }
    },
    "required": [
      "data_sharing"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name                                        | Type                                           | Required | Default | Details                                                               |
| ------------------------------------------- | ---------------------------------------------- | -------- | ------- | --------------------------------------------------------------------- |
| `result.data`                               | `object`                                       | Yes      | —       | Update Data Sharing Response                                          |
| `result.data.data_sharing`                  | `array`                                        | Yes      | —       | List of Update Status for Data Sharing Settings Maximum items: 100.   |
| `result.data.data_sharing[].status`         | `"success"`                                    | Yes      | —       | Update Status Allowed: `success`.                                     |
| `result.data.data_sharing[].code`           | `"SUCCESS"`                                    | Yes      | —       | Update Code Allowed: `SUCCESS`.                                       |
| `result.data.data_sharing[].message`        | `"data sharing settings updated successfully"` | Yes      | —       | Update Message Allowed: `data sharing settings updated successfully`. |
| `result.data.data_sharing[].details`        | `object`                                       | Yes      | —       | Additional Details                                                    |
| `result.data.data_sharing[].details.module` | `string`                                       | No       | —       | Module API Name Maximum length: 100.                                  |
| `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": "Update Data Sharing Response",
        "properties": {
          "data_sharing": {
            "type": "array",
            "description": "List of Update Status for Data Sharing Settings",
            "maxItems": 100,
            "items": {
              "type": "object",
              "description": "Update Status for Data Sharing Setting",
              "properties": {
                "status": {
                  "type": "string",
                  "description": "Update Status",
                  "enum": [
                    "success"
                  ]
                },
                "code": {
                  "type": "string",
                  "description": "Update Code",
                  "enum": [
                    "SUCCESS"
                  ]
                },
                "message": {
                  "type": "string",
                  "description": "Update Message",
                  "enum": [
                    "data sharing settings updated successfully"
                  ]
                },
                "details": {
                  "type": "object",
                  "description": "Additional Details",
                  "properties": {
                    "module": {
                      "type": "string",
                      "description": "Module API Name",
                      "maxLength": 100
                    }
                  },
                  "additionalProperties": false
                }
              },
              "required": [
                "status",
                "code",
                "message",
                "details"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "data_sharing"
        ],
        "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)
