Skip to main content
POST
TypeScript

Authorizations

session
string
cookie
required

The signed session cookie of a logged-in trdrs user. First-party/browser only; an API key cannot reach a route secured this way.

Headers

Idempotency-Key
string
required
Required string length: 1 - 128

Path Parameters

venueId
string<uuid>
required
accountId
string
required

Body

application/json
dailyLossEnabled
boolean
required
weeklyLossEnabled
boolean
required
dailyProfitEnabled
boolean
required
weeklyProfitEnabled
boolean
required
eodCloseEnabled
boolean
required
dailyLossValue
number | null
weeklyLossValue
number | null
dailyProfitValue
number | null
weeklyProfitValue
number | null
eodCloseValue
integer | null
Required range: 1 <= x <= 240

Response

Scoped result. Cache-Control: no-store.

accountId
string
required
controls
object
required

Loss and profit values are in account currency and positive; a disabled control's value is null. eodCloseValue is whole minutes before the 16:00 CT close. updatedAt is epoch seconds of the last write.

halted
boolean
required
lockReason
string | null
required