Skip to main content
POST
/
portfolios
Create or overwrite a portfolio and replace holdings
curl --request POST \
  --url https://api.noonum.ai/v2/portfolios \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "holdings": [
    {
      "weight": 0.5,
      "exchange": "<string>",
      "name": "<string>",
      "org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "raw_payload": {},
      "security_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "symbol": "<string>"
    }
  ],
  "name": "My Portfolio",
  "metadata": {},
  "public": false,
  "source": "<string>",
  "tags": [
    "<string>"
  ]
}
'
{
  "created_at": "Sat, 05 Apr 2025 17:43:37 GMT",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "public": true,
  "updated_at": "Mon, 07 Apr 2025 18:39:41 GMT",
  "user_id": "<string>",
  "holdings": [
    {
      "created_at": "Sat, 05 Apr 2025 17:43:37 GMT",
      "updated_at": "Mon, 07 Apr 2025 18:39:41 GMT",
      "weight": 0.5,
      "exchange": "<string>",
      "industry": "<string>",
      "market": "<string>",
      "market_cap": 123,
      "name": "<string>",
      "org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "raw_payload": {},
      "sector": "<string>",
      "security_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "symbol": "<string>"
    }
  ],
  "metadata": {},
  "source": "<string>",
  "tags": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Enter 'Bearer' followed by a space and then your JWT or API Key. Example: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9... or Bearer YOUR_API_KEY_HERE

Body

application/json
holdings
object[]
required
name
string
required
Example:

"My Portfolio"

metadata
object
public
boolean
default:false
source
string | null
tags
string[] | null

Response

Portfolio overwritten

created_at
string
required

Timestamp when the portfolio was created (RFC 7231 HTTP-date string).

Example:

"Sat, 05 Apr 2025 17:43:37 GMT"

id
string<uuid>
required
name
string
required
public
boolean
required
updated_at
string
required

Timestamp when the portfolio was last updated (RFC 7231 HTTP-date string).

Example:

"Mon, 07 Apr 2025 18:39:41 GMT"

user_id
string | null
required

Owner identifier; null when requester is not the owner.

holdings
object[]
required
metadata
object
source
string | null
tags
string[] | null