---
title: "Update an account"
method: PATCH
path: "/api/v3/connections/{connection_id}/accounts/{account_id}"
tags: ["Accounts"]
---

# Update an account

`PATCH /api/v3/connections/{connection_id}/accounts/{account_id}`

## Request

- Base URL: `https://embedded.improvado.io`
- URL: `https://embedded.improvado.io/api/v3/connections/{connection_id}/accounts/{account_id}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `dts_session_id`
- TypeScript: <https://skmtc.dev/improvado/apis/improvado-embedded-api-v3/docs/api/v3/connections/:connection_id/accounts/:account_id/patch.ts> (a function with typed inputs; its response is checked against the schema)

Update an account

## Path parameters

- `connection_id` integer, required
- `account_id` integer, required

## Request body

- object
  - `enabled_for_embedded_extraction` boolean: Enabled for embedded extraction

## Response `200`

Update an Account

- Account: Account object
  - `id` integer: Account ID
  - `account_id` string: Remote account ID
  - `title` string: Account title
  - `currency` string: Account currency
  - `connection_id` integer: Connection ID
  - `datasource_name` string: Data source name
  - `created_at` string: Account creation date
  - `updated_at` string: Account update date
  - `is_active` boolean: Is the account active
  - `enabled_for_embedded_extraction` boolean: Is the account enabled for embedded extraction
  - `item` object: Data source-specific account item information

## Other responses

- `401`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/improvado/apis/improvado-embedded-api-v3.md) - [All operations](https://skmtc.dev/improvado/apis/improvado-embedded-api-v3/llms.txt) - [OpenAPI document](https://skmtc.dev/improvado/apis/improvado-embedded-api-v3/revisions/a881099bd6c4?raw)
