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

> To reorder workflow rules. Includes SDK V2 and CLI requests, input constraints, response fields, and Deepline credit cost.

To reorder workflow rules.

<Info>
  Tool ID: `zoho_crm_workflow_rules_put_reorder`
</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_workflow_rules_put_reorder',
  {
    "reorder": {
      "workflow_rules": [
        {
          "module_specific_sequence": 123,
          "id": "id_123"
        }
      ]
    }
  },
);

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

### CLI

```bash theme={null}
deepline tools execute zoho_crm_workflow_rules_put_reorder --input '{
  "reorder": {
    "workflow_rules": [
      {
        "module_specific_sequence": 123,
        "id": "id_123"
      }
    ]
  }
}' --json
```

## Example response

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

```json theme={null}
{
  "data": {
    "reorder": [
      {
        "code": "example",
        "details": {
          "id": "id_123"
        },
        "message": "workflow created"
      }
    ]
  }
}
```

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

## Input reference

Alternate request body wrapper containing the reorder payload for adjusting workflow rule execution order.

| Name              | Type     | Required | Default | Details                                                                                            |
| ----------------- | -------- | -------- | ------- | -------------------------------------------------------------------------------------------------- |
| `payload.module`  | `string` | No       | —       | The module for which the rule counts should be provided. Format: `string`.                         |
| `payload.reorder` | `object` | Yes      | —       | Alternate root payload listing workflow rules and their updated execution order within the module. |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Alternate request body wrapper containing the reorder payload for adjusting workflow rule execution order.",
    "properties": {
      "module": {
        "type": "string",
        "description": "The module for which the rule counts should be provided.",
        "format": "string"
      },
      "reorder": {
        "type": "object",
        "description": "Alternate root payload listing workflow rules and their updated execution order within the module.",
        "properties": {
          "workflow_rules": {
            "type": "array",
            "description": "An array containing the list of Workflow rules whose execution order you want to update. Each object in this array specifies the Workflow rule ID and its new position in the execution order for the given module. (Required)",
            "maxItems": 10,
            "items": {
              "type": "object",
              "description": "Alternate reorder item entry specifying a workflow rule ID and its new module-specific sequence index.",
              "properties": {
                "module_specific_sequence": {
                  "type": "integer",
                  "description": "Specify the new execution order for this Workflow rule within the module. The index starts from 1. (Required)",
                  "format": "int32"
                },
                "id": {
                  "type": "string",
                  "description": "Specify the ID to update its workflow execution order. (Required)",
                  "maxLength": 20
                }
              },
              "required": [
                "id",
                "module_specific_sequence"
              ],
              "additionalProperties": false
            }
          }
        },
        "additionalProperties": false
      }
    },
    "required": [
      "reorder"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name                               | Type                                                                                                                                                                         | Required | Default | Details                                                                                                                                                                                   |
| ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `result.data`                      | `object`                                                                                                                                                                     | Yes      | —       | Workflow Rule created successfully                                                                                                                                                        |
| `result.data.reorder`              | `array`                                                                                                                                                                      | No       | —       | Field: workflow\_rules Maximum items: 125.                                                                                                                                                |
| `result.data.reorder[].code`       | `string`                                                                                                                                                                     | No       | —       | Field: code Maximum length: 255.                                                                                                                                                          |
| `result.data.reorder[].details`    | `object`                                                                                                                                                                     | No       | —       | Nested schema for details                                                                                                                                                                 |
| `result.data.reorder[].details.id` | `string`                                                                                                                                                                     | No       | —       | Field: id Maximum length: 255.                                                                                                                                                            |
| `result.data.reorder[].message`    | `"workflow created" \| "workflow updated" \| "workflow deleted" \| "WorkFlow Rule deleted successfully" \| "rules reordered successfully" \| "Workflow cloned successfully"` | No       | —       | Field: message Allowed: `workflow created`, `workflow updated`, `workflow deleted`, `WorkFlow Rule deleted successfully`, `rules reordered successfully`, `Workflow cloned successfully`. |
| `result.data.reorder[].status`     | `string`                                                                                                                                                                     | No       | —       | Field: status Maximum length: 7.                                                                                                                                                          |
| `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": "Workflow Rule created successfully",
        "properties": {
          "reorder": {
            "type": "array",
            "description": "Field: workflow_rules",
            "maxItems": 125,
            "items": {
              "type": "object",
              "description": "Nested schema for workflow_rules",
              "properties": {
                "code": {
                  "type": "string",
                  "description": "Field: code",
                  "maxLength": 255
                },
                "details": {
                  "type": "object",
                  "description": "Nested schema for details",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Field: id",
                      "maxLength": 255
                    }
                  },
                  "additionalProperties": false
                },
                "message": {
                  "type": "string",
                  "description": "Field: message",
                  "enum": [
                    "workflow created",
                    "workflow updated",
                    "workflow deleted",
                    "WorkFlow Rule deleted successfully",
                    "rules reordered successfully",
                    "Workflow cloned successfully"
                  ]
                },
                "status": {
                  "type": "string",
                  "description": "Field: status",
                  "maxLength": 7
                }
              },
              "additionalProperties": false
            }
          }
        },
        "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)
