# update_customer_subscription

Create, view, update, and delete dashboard, report, commitment, alert, and budget subscriptions. This is not Organization-wide notifications. Partially updates one dashboard, report, commitment, alert, or budget subscription with an application/merge-patch+json body (RFC 7396). The writable fields are recipients.emails, recipients.slackChannels, and, on a scheduled subscription, subscriptions. Any other field, recipients: null, or null for either recipient list is 422 validation_failed. A patch that sets neither recipients nor subscriptions is 422 validation_failed. A wrong Content-Type is 415. Recipient and schedule value rules are on CustomerSubscriptionRecipients, CustomerSubscriptionRecipientPatch, and CustomerSubscriptionScheduleInput. On a scheduled subscription, subscriptions is the desired set of dashboard, report, and commitment subscriptions. A type in the body and not on the document is added. A type on the document and missing from the body is removed. A type in both is updated when source.id or the schedule differs, and nextAt is recalculated. A stored entry this API does not list stays on the subscription. An empty subscriptions array is 422 validation_failed; deleting the item is DELETE. A repeated type is 422 customers.duplicate_subscription_type. An omitted subscriptions array leaves the nested types unchanged. Create does not accept alert or budget. GET returns them. On an alert or a budget, subscriptions is accepted only when it is the one stored entry with the same type and source.id and no schedule. Any other array is 422 validation_failed. Those items never gain a dashboard, report, or commitment subscription. Alerts and budgets keep their own APIs for create, delete, and full management. This PATCH is the one write this API makes on them, and it may replace their recipient lists. DELETE of an alert or a budget returns 409 customers.entry_is_resource. A patch whose normalized values match the stored values returns 200 and does not write. The etag is unchanged. Recipient changes are allowed when the caller can edit every key on the document, including a key the response did not show. Otherwise they are allowed only when the caller removes exactly their own email: no added address, no Slack change, and no subscription-set change. Any other recipient change is 403. The caller must be allowed to manage every added or changed scheduled type and to delete every removed type. If-Match must contain the current strong ETag. The token only covers fields this API can write. Idempotency-Key is required. The same key, caller, customer, method, path, body, and If-Match replays the stored success response. A different body or If-Match is 422 idempotency_key_reused. A missing key is 400 idempotency_key_required. While the first request is in progress, another request with that key is 409 idempotency_request_in_progress. A 4xx response releases the key. dryRun=true does not reserve the key. It returns the would-be subscription with the current etag and writes nothing. Reads are immediately consistent. After a completed update, a GET of that id returns the new state.

Agent View of the PolicyLayer registry record for `update_customer_subscription`. HTML page: https://policylayer.com/tools/doit/update-customer-subscription

## Facts

- Tool: `update_customer_subscription`
- Server: Doit (`@doitintl/doit-mcp-server`) — https://policylayer.com/tools/doit.md
- Install: `npx -y @doitintl/doit-mcp-server`
- Homepage: https://www.npmjs.com/package/@doitintl/doit-mcp-server
- Risk category: Write (Medium risk)
- Registry record: grade F, identity unverified
- Server rate-limited: no
- Parameters: 7 (3 required)
- Recommended policy verdict: Rate-limited

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes |  |
| `dryRun` | boolean | no |  |
| `If-Match` | string | yes |  |
| `recipients` | object | no | Recipient lists to replace. An omitted list stays. |
| `subscriptions` | array | no | Desired nested subscriptions. The server sorts them by `type` ascending. Request order is not stored and is not significant. On a scheduled subscription, the sc |
| `Idempotency-Key` | string | yes |  |
| `customerContext` | string | no | Scope the request to a specific customer by ID. Required for DoiT employees (whose token isn't tied to a single customer); omit for direct customer users. |

Parameters from the server's own tool schema.

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_customer_subscription",
    "arguments": {
      "id": "<id>",
      "If-Match": "<If-Match>",
      "Idempotency-Key": "<Idempotency-Key>"
    }
  }
}
```

## Why update_customer_subscription is rated Medium

An AI agent can call update_customer_subscription faster than any human can review: one bad instruction and it creates or modifies resources in Doit by the hundred, each call as confident as the last.

Risk signals: High parameter count (24 properties) · Bulk/mass operation — affects multiple targets

## Use case

AI agents use update_customer_subscription to create or update resources in Doit, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Doit environment.

## Recommended policy (PolicyLayer)

Verdict: **Rate-limited**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Doit:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "update_customer_subscription": {
      "limits": [
        {
          "counter": "update_customer_subscription_rate",
          "window": "minute",
          "max": 30,
          "scope": "grant"
        }
      ]
    }
  }
}
```

## Other tools on Doit (284)

- `cancel_async_operation` — Destructive — https://policylayer.com/tools/doit/cancel-async-operation.md
- `cancel_invite` — Destructive — https://policylayer.com/tools/doit/cancel-invite.md
- `confirm_action` — Destructive — https://policylayer.com/tools/doit/confirm-action.md
- `delete_account_role` — Destructive — https://policylayer.com/tools/doit/delete-account-role.md
- `delete_alert` — Destructive — https://policylayer.com/tools/doit/delete-alert.md
- `delete_allocation` — Destructive — https://policylayer.com/tools/doit/delete-allocation.md
- `delete_annotation` — Destructive — https://policylayer.com/tools/doit/delete-annotation.md
- `delete_ava_conversation` — Destructive — https://policylayer.com/tools/doit/delete-ava-conversation.md
- `delete_budget` — Destructive — https://policylayer.com/tools/doit/delete-budget.md
- `delete_cloudflow_connection` — Destructive — https://policylayer.com/tools/doit/delete-cloudflow-connection.md
- `delete_custom_theme` — Destructive — https://policylayer.com/tools/doit/delete-custom-theme.md
- `delete_customer_geographic_access_scope` — Destructive — https://policylayer.com/tools/doit/delete-customer-geographic-access-scope.md
- `delete_customer_group` — Destructive — https://policylayer.com/tools/doit/delete-customer-group.md
- `delete_customer_notification` — Destructive — https://policylayer.com/tools/doit/delete-customer-notification.md
- `delete_customer_subscription` — Destructive — https://policylayer.com/tools/doit/delete-customer-subscription.md
- `delete_datahub_dataset` — Destructive — https://policylayer.com/tools/doit/delete-datahub-dataset.md
- `delete_datahub_datasets` — Destructive — https://policylayer.com/tools/doit/delete-datahub-datasets.md
- `delete_datahub_events_by_filter` — Destructive — https://policylayer.com/tools/doit/delete-datahub-events-by-filter.md
- `delete_folder` — Destructive — https://policylayer.com/tools/doit/delete-folder.md
- `delete_geographic_access_custom_region` — Destructive — https://policylayer.com/tools/doit/delete-geographic-access-custom-region.md
- `delete_insight_result` — Destructive — https://policylayer.com/tools/doit/delete-insight-result.md
- `delete_insight_results` — Destructive — https://policylayer.com/tools/doit/delete-insight-results.md
- `delete_label` — Destructive — https://policylayer.com/tools/doit/delete-label.md
- `delete_report` — Destructive — https://policylayer.com/tools/doit/delete-report.md
- `delete_role` — Destructive — https://policylayer.com/tools/doit/delete-role.md
- `delete_service_account` — Destructive — https://policylayer.com/tools/doit/delete-service-account.md
- `delete_service_account_token` — Destructive — https://policylayer.com/tools/doit/delete-service-account-token.md
- `delete_user` — Destructive — https://policylayer.com/tools/doit/delete-user.md
- `delete_user_geographic_access_scope` — Destructive — https://policylayer.com/tools/doit/delete-user-geographic-access-scope.md
- `delete_user_notification` — Destructive — https://policylayer.com/tools/doit/delete-user-notification.md
- …and 254 more: https://policylayer.com/tools/doit.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=doit · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/doit
