> ## 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 a global picklist by id. Includes SDK V2 and CLI requests, input constraints, response fields, and Deepline credit cost.

Update a global picklist by id.

<Info>
  Tool ID: `zoho_crm_global_picklists_update_global_picklist_by_id`
</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_global_picklists_update_global_picklist_by_id',
  {
    "id": "id_123",
    "global_picklists": [
      {
        "display_label": "example",
        "api_name": "Example",
        "description": "Example description"
      }
    ]
  },
);

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

### CLI

```bash theme={null}
deepline tools execute zoho_crm_global_picklists_update_global_picklist_by_id --input '{
  "id": "id_123",
  "global_picklists": [
    {
      "display_label": "example",
      "api_name": "Example",
      "description": "Example description"
    }
  ]
}' --json
```

## Example response

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

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

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

## Input reference

Request body for updating a global picklist.

| Name                       | Type     | Required | Default | Details                                                           |
| -------------------------- | -------- | -------- | ------- | ----------------------------------------------------------------- |
| `payload.id`               | `string` | Yes      | —       | Numeric id of the resource. Format: `int64`.                      |
| `payload.global_picklists` | `array`  | Yes      | —       | Array containing the global picklist 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 a global picklist.",
    "properties": {
      "id": {
        "type": "string",
        "description": "Numeric id of the resource.",
        "format": "int64"
      },
      "global_picklists": {
        "type": "array",
        "description": "Array containing the global picklist to update.",
        "maxItems": 1,
        "items": {
          "type": "object",
          "description": "Global picklist object with update details.",
          "properties": {
            "display_label": {
              "type": "string",
              "description": "Updated display label of the global picklist.",
              "maxLength": 50
            },
            "api_name": {
              "type": "string",
              "description": "API name of the resource. It will start with alphabets and can contain alphanumeric characters and underscores.",
              "maxLength": 50,
              "pattern": "^[A-Za-z][A-Za-z0-9_]*$"
            },
            "description": {
              "type": [
                "string",
                "null"
              ],
              "description": "Updated description of the global picklist.",
              "maxLength": 1000
            },
            "pick_list_values_sorted_lexically": {
              "type": "boolean",
              "description": "Indicates if picklist values should be sorted lexically."
            },
            "pick_list_values": {
              "type": "array",
              "description": "Array of picklist values to add, update, or delete. For updates, include id and fields to update. For deletion, include id and _delete: true. Only one value can be moved to unused or deleted per request.",
              "maxItems": 5000,
              "items": {
                "type": "object",
                "description": "Picklist value object for update/add/delete.",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Id of the resource.",
                    "format": "int64"
                  },
                  "display_value": {
                    "type": "string",
                    "description": "The picklist display value(translated value if translation enabled).",
                    "maxLength": 120
                  },
                  "reference_value": {
                    "type": "string",
                    "description": "Reference value of the picklist field.",
                    "maxLength": 120
                  },
                  "type": {
                    "type": "string",
                    "description": "Type of the picklist value (used or unused). Only one value can be moved to unused per request.",
                    "enum": [
                      "unused",
                      "used"
                    ]
                  },
                  "_delete": {
                    "type": "boolean",
                    "description": "Set to true to delete this picklist value. Only one value can be deleted per request."
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "additionalProperties": false
        }
      }
    },
    "required": [
      "id",
      "global_picklists"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name                                        | Type        | Required | Default | Details                                                                  |
| ------------------------------------------- | ----------- | -------- | ------- | ------------------------------------------------------------------------ |
| `result.data`                               | `object`    | Yes      | —       | Response object for successful update of a global picklist.              |
| `result.data.global_picklists`              | `array`     | Yes      | —       | Array containing the updated global picklist response. Maximum items: 1. |
| `result.data.global_picklists[].code`       | `"SUCCESS"` | Yes      | —       | Response code indicating successful update. Allowed: `SUCCESS`.          |
| `result.data.global_picklists[].details`    | `object`    | Yes      | —       | Details of the updated global picklist.                                  |
| `result.data.global_picklists[].details.id` | `string`    | Yes      | —       | Id of the resource. Format: `int64`.                                     |
| `result.data.global_picklists[].message`    | `string`    | Yes      | —       | Human-readable success message. Maximum length: 255.                     |
| `result.data.global_picklists[].status`     | `"success"` | Yes      | —       | Status of the operation. Allowed: `success`.                             |
| `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 object for successful update of a global picklist.",
        "properties": {
          "global_picklists": {
            "type": "array",
            "description": "Array containing the updated global picklist response.",
            "maxItems": 1,
            "items": {
              "type": "object",
              "description": "Updated global picklist response details.",
              "properties": {
                "code": {
                  "type": "string",
                  "description": "Response code indicating successful update.",
                  "enum": [
                    "SUCCESS"
                  ]
                },
                "details": {
                  "type": "object",
                  "description": "Details of the updated global picklist.",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Id of the resource.",
                      "format": "int64"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable success message.",
                  "maxLength": 255
                },
                "status": {
                  "type": "string",
                  "description": "Status of the operation.",
                  "enum": [
                    "success"
                  ]
                }
              },
              "required": [
                "code",
                "details",
                "message",
                "status"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "global_picklists"
        ],
        "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)
