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

# Clarify: Update Records

> Update records in bulk. Clarify Update Records reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

Update records in bulk.

> [!NOTE]
>
> Tool ID: `clarify_update_records`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'clarify_update_records',
  {
    "workspace": "example",
    "object": "example",
    "data": [
      {
        "type": "example",
        "id": "id_123",
        "attributes": {}
      }
    ]
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run clarify_update_records --input '{
  "workspace": "example",
  "object": "example",
  "data": [
    {
      "type": "example",
      "id": "id_123",
      "attributes": {}
    }
  ]
}'
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "links": {
      "next": "example",
      "prev": "example"
    },
    "meta": {
      "total_records": 123,
      "total_pages": 123
    },
    "data": [
      {
        "type": "example",
        "id": "id_123",
        "attributes": {}
      }
    ]
  }
}
```

Use `deepline describe clarify_update_records --json` for the latest machine-readable contract.

## Input reference

Applies partial updates to multiple records in one request. Each entry names the record by `id` and lists only the fields to change.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.workspace` | `string` | Yes | — | The workspace slug — the `&#123;slug&#125;` segment of your Clarify workspace URL. |
| `payload.object` | `string` | Yes | — | The object type: a built-in entity (`person`, `company`, `deal`, …) or a custom object (`c_*`). |
| `payload.silent` | `boolean` | No | — | When true, suppresses in-app and Slack notifications for this mutation. |
| `payload.data` | `array` | Yes | — | The per-resource changes to apply. |
| `payload.meta` | `record` | No | — | Per-field write strategies, keyed by field name. controls how array, collection, and object values are merged instead of replaced. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Applies partial updates to multiple records in one request. Each entry names the record by `id` and lists only the fields to change.",
    "properties": {
      "workspace": {
        "type": "string",
        "description": "The workspace slug — the `{slug}` segment of your Clarify workspace URL."
      },
      "object": {
        "type": "string",
        "description": "The object type: a built-in entity (`person`, `company`, `deal`, …) or a custom object (`c_*`)."
      },
      "silent": {
        "type": "boolean",
        "description": "When true, suppresses in-app and Slack notifications for this mutation."
      },
      "data": {
        "type": "array",
        "description": "The per-resource changes to apply.",
        "items": {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "description": "The resource type; matches the `object` path parameter."
            },
            "id": {
              "type": "string",
              "description": "The unique ID of the resource to update."
            },
            "attributes": {
              "type": "object",
              "description": "The field values to change, keyed by field name; omitted fields keep their current values. System fields (prefixed with a single `_`) cannot be set.",
              "properties": {},
              "additionalProperties": true
            }
          },
          "required": [
            "type",
            "id",
            "attributes"
          ],
          "additionalProperties": false
        }
      },
      "meta": {
        "type": "object",
        "description": "Per-field write strategies, keyed by field name; controls how array, collection, and object values are merged instead of replaced.",
        "additionalProperties": {
          "type": "object",
          "properties": {
            "collection": {
              "type": "string",
              "description": "How to apply the update to a collection field: `append` adds items, `remove` deletes items, `replace` overwrites the collection (the default).",
              "enum": [
                "append",
                "remove",
                "replace"
              ]
            },
            "array": {
              "type": "string",
              "description": "How to apply the update to an array field: `append` adds items rather than replacing the array.",
              "enum": [
                "append"
              ]
            },
            "object": {
              "type": "string",
              "description": "How to apply the update to an object field: `merge` combines keys rather than replacing the object.",
              "enum": [
                "merge"
              ]
            }
          },
          "additionalProperties": false
        }
      }
    },
    "required": [
      "workspace",
      "object",
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.links` | `object` | Yes | — | Pagination links. |
| `result.data.links.next` | `string \| null` | Yes | — | URL of the next page, or `null` on the last page. |
| `result.data.links.prev` | `string \| null` | Yes | — | URL of the previous page, or `null` on the first page. |
| `result.data.meta` | `object` | Yes | — | Pagination metadata. |
| `result.data.meta.total_records` | `number` | Yes | — | Total number of records across all pages. |
| `result.data.meta.total_pages` | `number` | Yes | — | Total number of pages at the current page size. |
| `result.data.data` | `array` | Yes | — | The page of resources. |
| `result.data.data[].type` | `string` | Yes | — | The resource type. matches the `object` path parameter. |
| `result.data.data[].id` | `string` | Yes | — | The unique ID of the resource. |
| `result.data.data[].attributes` | `object` | Yes | — | Field values keyed by field name. available fields depend on the object’s schema. |
| `result.data.data[].relationships` | `object` | No | — | Related resources keyed by relationship name, present when requested via `include`. |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

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

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "links": {
            "type": "object",
            "description": "Pagination links.",
            "properties": {
              "next": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "URL of the next page, or `null` on the last page."
              },
              "prev": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "URL of the previous page, or `null` on the first page."
              }
            },
            "required": [
              "next",
              "prev"
            ],
            "additionalProperties": false
          },
          "meta": {
            "type": "object",
            "description": "Pagination metadata.",
            "properties": {
              "total_records": {
                "type": "number",
                "description": "Total number of records across all pages."
              },
              "total_pages": {
                "type": "number",
                "description": "Total number of pages at the current page size."
              }
            },
            "required": [
              "total_records",
              "total_pages"
            ],
            "additionalProperties": false
          },
          "data": {
            "type": "array",
            "description": "The page of resources.",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "description": "The resource type; matches the `object` path parameter."
                },
                "id": {
                  "type": "string",
                  "description": "The unique ID of the resource."
                },
                "attributes": {
                  "type": "object",
                  "description": "Field values keyed by field name; available fields depend on the object’s schema.",
                  "properties": {},
                  "additionalProperties": false
                },
                "relationships": {
                  "type": "object",
                  "description": "Related resources keyed by relationship name, present when requested via `include`.",
                  "properties": {},
                  "additionalProperties": false
                }
              },
              "required": [
                "type",
                "id",
                "attributes"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "links",
          "meta",
          "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

* [Connect integrations](https://deepline.com/docs/integrations.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.