Skip to main content
PATCH
Update a playbook

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.

Path Parameters

id
string<uuid>
required

playbook_id

Body

application/json
name
string
description
string | null
default_date
string<date> | null

A date pins the sheet. null follows today in US Eastern. Left out, the stored date stays (ADR-189).

source_type
enum<string>
Available options:
watchlist,
positions,
custom
source_watchlist_id
string<uuid> | null
custom_symbols
string[] | null
input_columns
string<uuid>[]
default_sort_input_id
string<uuid> | null

The column the app opens the sheet sorted by. null clears the sort. Left out, the stored sort stays (ADR-197).

default_sort_direction
enum<string>

rank puts 1 first, then 0 and the rest, then blank cells (a number column only). Alone, it changes the stored sort's direction (ADR-197).

Available options:
asc,
desc,
rank

Response

The playbook was updated

success
boolean
playbook
object

The full playbook record, as returned by create/update (distinct field names from the Playbook list-view above; id, not playbook_id).