Update a connector
Changes a connector with the rules of its page in the dashboard. A field left out stays as it is. An empty `auth` clears the token, except on commercetools. A secret header sent without a value keeps its stored value. `authMode` changes how a `custom` connector signs in; a change of mode, or of the address of an `oauth` connector, erases its sign-in and asks the vendor to revoke it, and a switch to `oauth` answers the connector not connected. Records a `connector.updated` audit entry, with no secret in it. Refused while a holdout runs on a site whose live version uses the connector.
ApiKeyAuthAuthorizationBearer <token>A WorkOS org-scoped API key, created from the dashboard's organization settings page. Identifies the tenant every read and write is scoped to. Missing, malformed, unknown, revoked, expired, or non-organization-owned keys all return 401 (no distinction, so the response can't be used to probe which keys or org ids exist).
connectorId*stringThe connector id (prefixed conn_), from the site's connector list or the subject of a connector_unavailable or catalog_empty alert. A connector id that isn't yours, or that was deleted, is a 404.
application/json- body
The fields to change. A field left out stays as it is.
name?stringcustom only; ignored for a native type.
url?stringThe MCP address, or for Shopify the store domain or any address on the store. Never put a key or token in it, query string included: the stored address is returned as it is. Send a key in a secret header.
auth?stringA new bearer token, or "" to clear it (refused on commercetools). Refused on Shopify and BigCommerce, which take no authentication (connector_input_invalid).
authMode?stringChanges the mode of a custom connector. A native type takes only its own mode back (none for Shopify and BigCommerce, token for commercetools and Adobe Commerce), as a no-op, and refuses any other (connector_input_invalid). Changing it erases the stored token, or the OAuth sign-in, which the vendor is asked to revoke. After a switch to oauth the connector is not connected: a member signs in from connection.connectUrl. Changing the address of an oauth connector erases its sign-in too. In none or oauth mode no token is kept, so an auth sent with either is ignored. A connector attached to no site cannot switch to oauth (connector_input_invalid): a member signs in from its page in a site.
"token""none""oauth"headers?array<>Custom request headers. A header marked secret is stored encrypted and never returned; on install its value may be left out to set it later. On a PATCH, a secret header sent without a value keeps its stored value, and the list replaces the stored one.
items <= 20settings?Adobe Commerce only.
The updated connector.
application/json- response
data*A connector of a site: an MCP server the site's agents can call. Every secret (token, secret header values) appears as a flag and is never returned.
curl -X PATCH 'https://example.com/api/v1/connectors/string' \ -H 'Content-Type: application/json' \ -d '{ "auth": "ct-token-example"}'{ "data": { "id": "conn_01kvnwmagvf27rc9cze5rm9e1r", "siteId": "site_01kvnwmagvf27rc9cze5rm9e1s", "type": "commercetools", "name": "commercetools", "url": "https://mcp.example-store.com/mcp", "authMode": "token", "connection": null, "tokenSet": true, "headers": [ { "name": "X-Project-Key", "secret": false, "set": true, "value": "example-store" } ], "settings": null, "tools": [ { "name": "search_products", "description": "Search the product catalog.", "enabled": true }, { "name": "create_cart", "description": null, "enabled": false } ], "disabledTools": [ "create_cart" ], "lastCheckedAt": "2026-11-19T10:00:00.000Z", "lastAnsweredAt": "2026-11-19T10:00:00.000Z", "dashboardUrl": "https://iadvize.ai/dashboard/sites/site_01kvnwmagvf27rc9cze5rm9e1s/connectors/conn_01kvnwmagvf27rc9cze5rm9e1r", "createdAt": "2026-11-19T10:00:00.000Z", "updatedAt": "2026-11-19T10:00:00.000Z" }}Delete a connector
Removes a connector, as the dashboard does: the agents that use it stop calling it at once, its token and secret header values are erased, and its open alert closes. Deleting it again is a `404`. Records a `connector.disabled` audit entry. Refused while a holdout runs on a site whose live version uses the connector.
Switch a connector's tools on and off
Replaces the set of switched-off tools, like the toggles of the connector's page. Every tool not listed is on. Records a `connector.tools_changed` audit entry. Refused while a holdout runs on a site whose live version uses the connector.