Connect EarthCompliance API
Portfolios

Rename a portfolio or change its currency

PUT/portfolios/{identifier}

Updates the name or currency of a portfolio. Send only the fields you want to change. It works on any portfolio in your organization, including portfolios created in the Connect Earth app. An unknown currency code is ignored.

Authorization

apiKey
x-api-key<token>

Your Connect Earth API key.

In: header

Path Parameters

identifier*string

The portfolio identifier returned by POST /portfolios or GET /portfolios.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X PUT "https://eco.datia.app/portfolios/datia-portfolio:12345_pension-fund-a" \  -H "x-api-key: $CE_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "name": "Pension fund A (EUR)",    "currency": "EUR"  }'
{  "identifier": "datia-portfolio:12345_pension-fund-a",  "metadata": {    "message": "Fund metadata updated successfully with id: 67890"  }}