> ## 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 Record Locking Configuration by ID. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Update Record Locking Configuration by ID.

<Info>
  Tool ID: `zoho_crm_record_locking_configurations_update_record_locking_configuration_passing_id_in_url`
</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_record_locking_configurations_update_record_locking_configuration_passing_id_in_url',
  {
    "id": "id_123",
    "module": "example",
    "record_locking_configurations": [
      {
        "id": "id_123"
      }
    ]
  },
);

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

### CLI

```bash theme={null}
deepline tools execute zoho_crm_record_locking_configurations_update_record_locking_configuration_passing_id_in_url --input '{
  "id": "id_123",
  "module": "example",
  "record_locking_configurations": [
    {
      "id": "id_123"
    }
  ]
}' --json
```

## Example response

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

```json theme={null}
{
  "data": {
    "record_locking_configurations": [
      {
        "status": "success",
        "code": "SUCCESS",
        "message": "Example message",
        "details": {
          "id": "id_123"
        }
      }
    ]
  }
}
```

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

## Input reference

Request body for updating record locking configurations.

| Name                                    | Type     | Required | Default | Details                                                                        |
| --------------------------------------- | -------- | -------- | ------- | ------------------------------------------------------------------------------ |
| `payload.id`                            | `string` | Yes      | —       | Record Locking Configuration ID Format: `int64`.                               |
| `payload.module`                        | `string` | Yes      | —       | module api\_name Maximum length: 256.                                          |
| `payload.record_locking_configurations` | `array`  | Yes      | —       | Array containing one record locking configuration to update. Maximum items: 1. |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Request body for updating record locking configurations.",
    "properties": {
      "id": {
        "type": "string",
        "description": "Record Locking Configuration ID",
        "format": "int64"
      },
      "module": {
        "type": "string",
        "description": "module api_name",
        "maxLength": 256
      },
      "record_locking_configurations": {
        "type": "array",
        "description": "Array containing one record locking configuration to update.",
        "maxItems": 1,
        "items": {
          "type": "object",
          "description": "Record locking configuration object to update.",
          "properties": {
            "lock_type": {
              "type": "string",
              "description": "Lock type to apply.",
              "enum": [
                "automatic",
                "manual",
                "both"
              ]
            },
            "locked_for": {
              "type": "string",
              "description": "Which profiles the lock applies to.",
              "enum": [
                "all_profiles",
                "all_profiles_except_excluded_profiles"
              ]
            },
            "restricted_actions": {
              "type": "array",
              "description": "Actions restricted by the lock.",
              "maxItems": 10,
              "items": {
                "type": "string",
                "description": "A restricted action.",
                "enum": [
                  "change_owner",
                  "update",
                  "delete",
                  "tags"
                ]
              }
            },
            "excluded_fields": {
              "type": "array",
              "description": "Fields excluded from locking.",
              "maxItems": 15,
              "items": {
                "type": "object",
                "description": "Field descriptor to be excluded from locking.",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Field id.",
                    "maxLength": 255
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              }
            },
            "feature_type": {
              "type": "string",
              "description": "Feature type identifier.",
              "enum": [
                "record_locking"
              ]
            },
            "locking_rules": {
              "type": "array",
              "description": "Locking rules for the configuration.",
              "maxItems": 5,
              "items": {
                "type": "object",
                "description": "A locking rule object.",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Name of the locking rule.",
                    "maxLength": 256
                  },
                  "id": {
                    "type": "string",
                    "description": "Locking rule id.",
                    "maxLength": 32
                  },
                  "lock_existing_records": {
                    "type": "boolean",
                    "description": "Whether to lock existing records matching criteria."
                  },
                  "criteria": {
                    "type": "object",
                    "description": "Criteria object used to match records.",
                    "additionalProperties": true
                  }
                },
                "required": [
                  "name",
                  "criteria"
                ],
                "additionalProperties": false
              }
            },
            "restricted_communications": {
              "type": "array",
              "description": "List of restricted communications.",
              "maxItems": 10,
              "items": {
                "type": "string",
                "description": "A restricted communication action.",
                "enum": [
                  "send_mail"
                ]
              }
            },
            "id": {
              "type": "string",
              "description": "Configuration id",
              "maxLength": 32
            },
            "lock_excluded_profiles": {
              "type": "array",
              "description": "Profiles excluded from locking.",
              "maxItems": 15,
              "items": {
                "type": "object",
                "description": "Profile descriptor excluded from locking.",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Profile id.",
                    "maxLength": 255
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              }
            },
            "lock_for_portal_users": {
              "type": "boolean",
              "description": "Whether portal users are affected by the lock."
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        }
      }
    },
    "required": [
      "id",
      "module",
      "record_locking_configurations"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name                                                     | Type        | Required | Default | Details                                                                     |
| -------------------------------------------------------- | ----------- | -------- | ------- | --------------------------------------------------------------------------- |
| `result.data`                                            | `object`    | Yes      | —       | Response schema for successful record locking configuration update.         |
| `result.data.record_locking_configurations`              | `array`     | Yes      | —       | List containing the updated record locking configuration. Maximum items: 1. |
| `result.data.record_locking_configurations[].status`     | `"success"` | Yes      | —       | Indicates successful operation. Allowed: `success`. Maximum length: 256.    |
| `result.data.record_locking_configurations[].code`       | `"SUCCESS"` | Yes      | —       | Success code for the operation. Allowed: `SUCCESS`. Maximum length: 256.    |
| `result.data.record_locking_configurations[].message`    | `string`    | Yes      | —       | Message confirming update success. Maximum length: 256.                     |
| `result.data.record_locking_configurations[].details`    | `object`    | Yes      | —       | Additional info about the updated configuration.                            |
| `result.data.record_locking_configurations[].details.id` | `string`    | Yes      | —       | ID of the updated record locking configuration. Maximum length: 256.        |
| `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 schema for successful record locking configuration update.",
        "properties": {
          "record_locking_configurations": {
            "type": "array",
            "description": "List containing the updated record locking configuration.",
            "maxItems": 1,
            "items": {
              "type": "object",
              "description": "Object representing the updated record locking configuration.",
              "properties": {
                "status": {
                  "type": "string",
                  "description": "Indicates successful operation.",
                  "maxLength": 256,
                  "enum": [
                    "success"
                  ]
                },
                "code": {
                  "type": "string",
                  "description": "Success code for the operation.",
                  "maxLength": 256,
                  "enum": [
                    "SUCCESS"
                  ]
                },
                "message": {
                  "type": "string",
                  "description": "Message confirming update success.",
                  "maxLength": 256
                },
                "details": {
                  "type": "object",
                  "description": "Additional info about the updated configuration.",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "ID of the updated record locking configuration.",
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "status",
                "code",
                "message",
                "details"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "record_locking_configurations"
        ],
        "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)
