---
title: "Enable or disable a connected account"
method: PATCH
path: "/api/v3/connected_accounts/{nanoId}/status"
tags: ["Connected Accounts", "Account Management"]
---

# Enable or disable a connected account

`PATCH /api/v3/connected_accounts/{nanoId}/status`

Updates the status of a connected account to either enabled (active) or disabled (inactive). Disabled accounts cannot be used for API calls but remain in the database.

## Path parameters

- `nanoId` string, connectedAccountId, required

## Request body

- object
  - `enabled` boolean, required — Set to true to enable the account or false to disable it

## Response `200`

Successfully updated the connected account status. If enabled=true, the account status is set to ACTIVE; if enabled=false, the status is set to INACTIVE.

- object — Response returned after successfully updating a connected account status
  - `success` boolean, required — Indicates whether the connected account status was successfully updated

## Other responses

- `400` — Bad request - Invalid nanoid format or invalid request body
- `401` — Unauthorized - Authentication failed
- `403` — Forbidden - Insufficient permissions to update this connected account
- `404` — Connected account not found - The specified account does not exist or has been deleted
- `500` — Internal server error - Failed to update the connected account status due to a server-side issue

---

[API](https://skmtc.net/composiohq/apis/composio-platform-api.md) · [All operations](https://skmtc.net/composiohq/apis/composio-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/composiohq/composio-platform-api/versions/df7478fc8f3b/schema)
