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

# HubSpot: Remove Ticket Association

> Remove a HubSpot ticket association to a contact, company, note, or another CRM object. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Remove a HubSpot ticket association to a contact, company, note, or another CRM object.

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

## 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(
  'hubspot_remove_ticket_association',
  {
    "ticket_id": "ticket_123",
    "to_object_type": "example",
    "to_object_id": "to_object_123",
    "association_type_id": "association_type_123"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute hubspot_remove_ticket_association --input '{
  "ticket_id": "ticket_123",
  "to_object_type": "example",
  "to_object_id": "to_object_123",
  "association_type_id": "association_type_123"
}' --json
```

## 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": {
    "success": true
  }
}
```

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

## Input reference

Remove an association between a ticket and another CRM record.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.ticket_id` | `string` | Yes | — | HubSpot ticket record ID. |
| `payload.to_object_type` | `string` | Yes | — | Target object type or alias, e.g. contact, company, note. |
| `payload.to_object_id` | `string` | Yes | — | Target HubSpot record ID. |
| `payload.association_type_id` | `string \| number` | Yes | — | HubSpot association type ID. Use `hubspot_list_association_types` if unknown. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Remove an association between a ticket and another CRM record.",
    "properties": {
      "ticket_id": {
        "type": "string",
        "description": "HubSpot ticket record ID."
      },
      "to_object_type": {
        "type": "string",
        "description": "Target object type or alias, e.g. contact, company, note."
      },
      "to_object_id": {
        "type": "string",
        "description": "Target HubSpot record ID."
      },
      "association_type_id": {
        "description": "HubSpot association type ID. Use `hubspot_list_association_types` if unknown.",
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "number"
          }
        ]
      }
    },
    "required": [
      "ticket_id",
      "to_object_type",
      "to_object_id",
      "association_type_id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.success` | `boolean` | Yes | — | — |
| `result.meta` | `record` | 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": {
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "success"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": {}
      }
    },
    "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

* [HubSpot provider guide](https://deepline.com/docs/providers/hubspot/guide.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.