---
title: "Update account"
method: PATCH
path: "/accounts/{id}"
tags: ["Accounts"]
---

# Update account

`PATCH /accounts/{id}`

## Request

- Base URL: `//basrvqaap6001.morningstar.com/WPDemo/webportfolio/api/v1` (relative, and the document’s source URL is not known)
- URL: `//basrvqaap6001.morningstar.com/WPDemo/webportfolio/api/v1/accounts/{id}`
- Auth: API key in header `Authorization`

Update an existing account

## Path parameters

- `id` integer, required

## Request body

- AccountPatch
  - `accountNumber` string: 123456789
  - `accountNumber2` string: 123456789
  - `name` string: 123456789

## Response `200`

Ok

## Other responses

- `400`: Bad Request
- `401`: Not Authorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error

## Changes

- **2026-11-03** `475f167d1874`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/morningstar/apis/byallaccounts-api-07302024/changes/accounts/:id/patch.md)

---

[API](https://skmtc.dev/morningstar/apis/byallaccounts-api-07302024.md) - [All operations](https://skmtc.dev/morningstar/apis/byallaccounts-api-07302024/llms.txt) - [OpenAPI document](https://skmtc.dev/morningstar/apis/byallaccounts-api-07302024/revisions/475f167d1874?raw)
