Skip to main content
POST
Set which portfolio/watchlist/chart/playbook/monitor the app shows, or the theme

Authorizations

x-api-key
string
header
required

Raw API key shown once when created in the Allocait app (Settings > API keys). Send it verbatim in this header; the server stores and compares only its SHA-256 hash. Allocait generates every key: alc_ followed by 64 lowercase hex characters. Keys issued before 2026-10-10 are 64 hex characters with no prefix and keep working. A key may carry an expiry (90 days or 1 year, or never). A malformed, unknown, revoked or expired key gets 401 with no further detail, and a malformed one is refused before any lookup. Keys cannot be created through this API.

Body

application/json
active_portfolio_id
string<uuid>
active_scenario_id
string<uuid>

Display fallback only, read when the portfolio has no active scenario. Switch the judged scenario with PATCH /portfolios/{id}.

active_watchlist_id
string<uuid>
active_chart_id
string<uuid>
active_playbook_id
string<uuid>
active_monitor_id
string<uuid>
theme
enum<string>
Available options:
light,
dark,
system
clear_active_portfolio_id
boolean

Set true to clear active_portfolio_id to null. Wins over active_portfolio_id in the same call.

clear_active_scenario_id
boolean

Set true to clear active_scenario_id to null. Wins over active_scenario_id in the same call.

clear_active_watchlist_id
boolean

Set true to clear active_watchlist_id to null. Wins over active_watchlist_id in the same call.

clear_active_chart_id
boolean

Set true to clear active_chart_id to null. Wins over active_chart_id in the same call.

clear_active_playbook_id
boolean

Set true to clear active_playbook_id to null. Wins over active_playbook_id in the same call.

clear_active_monitor_id
boolean

Set true to clear active_monitor_id to null. Wins over active_monitor_id in the same call.

Response

Preferences were updated

success
boolean
preferences
object

The caller's active portfolio/scenario/watchlist/chart/playbook/monitor and theme. Every page in the app falls back to this row to decide what to show by default.