---
title: "/api/portfolio/update"
method: POST
path: "/api/portfolio/update"
tags: ["Portfolio"]
---

# /api/portfolio/update

`POST /api/portfolio/update`

## Request

- Base URL: `https://api.avo.so`
- URL: `https://api.avo.so/api/portfolio/update`
- Auth: HTTP bearer

Updates the target positions for an existing portfolio. Target positions define the desired allocation of tokens in the portfolio.

## Request body

- object
  - `portfolio_id` string, required: The unique identifier of the portfolio to update. Example: 550e8400-e29b-41d4-a716-446655440000
  - `target_positions` object[], required: Array of target position allocations (1-100 items). Each object has mint (string) and allocation (number 0-1)
    - `mint` string, required: Token mint address
    - `allocation` number, required: Allocation percentage (0.0 - 1.0)

## Response `200`

Portfolio updated successfully

## Other responses

- `400`: Invalid request parameters
- `401`: Unauthorized
- `500`: Internal server error

---

[API](https://skmtc.dev/avo/apis/avo-public-api.md) - [All operations](https://skmtc.dev/avo/apis/avo-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/avo/apis/avo-public-api/revisions/1ee729b275f0?raw)
