---
search:
  tags:
    - Teams
    - PATCH
seo:
  description: >-
    User-gated (chrm_user_* or session); the caller must be an… Reference for
    the PATCH /api/v1/teams/{teamId}/connectors/{service} endpoint in the
    Charming API.
sidebar:
  label: Turn a connector on or off for a team
  badge: PATCH
title: Turn a connector on or off for a team
type: openapi-operation
---
User-gated (`chrm_user_*` or session); the caller must be an owner or admin of the team. Turning a service off refuses every call to it from the team’s Apps with `connector_blocked_by_team` and keeps each approval, so turning it back on restores them.

`PATCH /api/v1/teams/{teamId}/connectors/{service}`

**Request body** (`application/json`, required)

- `allowed` (boolean, required)

Request body example:

```json
{
  "allowed": true
}
```

**Responses**

- `200` — The team’s connectors after the change.
- `400` — Invalid body.
- `401` — Sign-in required.
- `403` — The caller is not an owner or admin of this team.
- `404` — The connector catalog does not list this service.

Response example, 200:

```json
{
  "ok": true,
  "connectors": [
    {
      "service": "string",
      "allowed": true,
      "appCount": 0,
      "apps": [
        {
          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
          "name": "string"
        }
      ]
    }
  ]
}
```

Found a bug or need a feature? [Tell us](/docs/capabilities/feedback) with `submit_feedback` or `POST /app/{id}/feedback`. Your feedback shapes what we build next.
