> ## 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: Create Schema Relationship Properties

> Add object relationships. Includes SDK V2 and CLI requests, input constraints, response fields, and Deepline credit cost.

Add object relationships.

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

## 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_create_schema_relationship_properties',
  {
    "workspace": "example",
    "entity": "example",
    "data": {
      "type": "relationship",
      "attributes": {}
    }
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run clarify_create_schema_relationship_properties --input '{
  "workspace": "example",
  "entity": "example",
  "data": {
    "type": "relationship",
    "attributes": {}
  }
}'
```

## Example response

The static output schema lacks the details for a reliable example. Use `deepline describe clarify_create_schema_relationship_properties --json` for the complete live contract.

## Input reference

Creates relationship fields between object types. The `attributes` map is keyed first by object type, then by field name, and both sides of each relationship must be supplied together so the pairing is consistent. On `one-to-many` and `many-to-many` sides, the field must declare `"oneOf": [&#123; "$ref": "https://getclarify.ai/schemas/core/collectionOfIds" &#125;, &#123; "type": "null" &#125;]` — the exact `$ref` string is required. The change is applied asynchronously and the response body is empty.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.workspace` | `string` | Yes | — | The workspace slug — the `&#123;slug&#125;` segment of your Clarify workspace URL. |
| `payload.entity` | `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` | `object` | Yes | — | The relationship definition to create. |

> [!NOTE]
>
> This input schema is too large for an inline display. Read the complete live contract with `deepline describe clarify_create_schema_relationship_properties --json`.

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `unknown` | Yes | — | Provider response payload. |
| `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": {
        "description": "Provider response payload."
      },
      "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.