---
title: "Create or update portfolio account"
method: PUT
path: "/portfolio/accounts/{id}"
tags: ["Portfolio Accounts"]
---

# Create or update portfolio account

`PUT /portfolio/accounts/{id}`

## Request

- Base URL: `https://eliq.data-management-api.eliq.com` (the document declares no server; this is the origin it was published from)
- URL: `https://eliq.data-management-api.eliq.com/portfolio/accounts/{id}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/eliq/apis/eliq-data-management-api/docs/portfolio/accounts/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

Create or update an account for the portfolio.
 If an account with the given id does not exist, a new account will be created.
 If an account with id exists, that account will be updated.

## Path parameters

- `id` string, required

## Request body

- PortfolioAccount
  - `id` string, nullable
  - `name` string, required
  - `created_at_utc` string

## Response `200`

Portfolio account was updated

- PortfolioAccount
  - `id` string, nullable
  - `name` string, required
  - `created_at_utc` string

## Other responses

- `201`: Portfolio account was created
- `400`: Bad request. See error code and description for more info

---

[API](https://skmtc.dev/eliq/apis/eliq-data-management-api.md) - [All operations](https://skmtc.dev/eliq/apis/eliq-data-management-api/llms.txt) - [OpenAPI document](https://skmtc.dev/eliq/apis/eliq-data-management-api/revisions/022af911e0d0?raw)
