---
title: "HubSpot's switches"
description: "Turns the workspace's HubSpot switches on or off; send only the ones to change."
canonical_url: https://docs.markdrop.in/api/hubspot/hubspot-s-switches
last_updated: 2026-11-20
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# HubSpot's switches

`PUT https://api.markdrop.in/api/v1/hubspot/settings`

Turns the workspace's HubSpot switches on or off; send only the ones to change. `auto_log` (Log calls automatically, off by default): a team call whose summary is written and that matched the meeting HubSpot booked is logged on its own. `suggest` (on): suggested deal updates after calls. `precall` (on): pre-call briefs to the team's members. `approve` (on): the Slack message with Log to HubSpot and Create tasks to a call's host. `deal_updates` (off): let Apply on a suggested update change the deal. Returns the status. Admins and owners.

- **Authentication:** API token required: `Authorization: Bearer mdk_…`.
- **Rate limit:** 30 per minute per IP address.
- **Guide:** [HubSpot](https://docs.markdrop.in/integrations/hubspot#the-hubspot-card)

## Request body

`application/json`, required.

- `workspace_id` (string, required): Matches `^[0-9a-f]{24}$`.
- `auto_log` (boolean): Log the team's calls to HubSpot after their summary is written, when the match is confident (off by default).
- `suggest` (boolean): Suggest deal updates after a call matched to a deal (on by default; never applied without a person).
- `precall` (boolean): Pre-call briefs to the team's members before their HubSpot meetings (on by default).
- `approve` (boolean): A Slack message to the call's host with Log to HubSpot and Create tasks buttons (on by default).
- `deal_updates` (boolean): Let Apply on a suggested deal update change the deal in HubSpot (off by default; the key also needs crm.objects.deals.write).

## Responses

- `200`: OK.
- `401`: No token, or the token is revoked or mistyped.
- `422`: The request didn't validate. `detail` lists each problem, with where it is (`loc`) and why (`msg`).
- `429`: Too many requests from your IP address. Wait the seconds in `Retry-After`.

## Examples

**curl**

```bash
curl -X PUT https://api.markdrop.in/api/v1/hubspot/settings \
  -H "Authorization: Bearer $MARKDROP_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"workspace_id":"WORKSPACE_ID"}'
```

**JavaScript**

```javascript
const res = await fetch("https://api.markdrop.in/api/v1/hubspot/settings", {
  method: "PUT",
  headers: {
    Authorization: `Bearer ${process.env.MARKDROP_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "workspace_id": "WORKSPACE_ID"
  }),
});
const data = await res.json();
```

**Python**

```python
import os

import requests

r = requests.put(
    "https://api.markdrop.in/api/v1/hubspot/settings",
    headers={"Authorization": f"Bearer {os.environ['MARKDROP_TOKEN']}"},
    json={"workspace_id": "WORKSPACE_ID"},
)
r.raise_for_status()
print(r.json())
```
