Skip to main content
PATCH
Update a trading account

Authorizations

Authorization
string
header
required

JWT Bearer token for user session auth. Format: "Bearer {token}". Used by User and Organization endpoints.

Path Parameters

accountId
string
required

The trading account ID

Body

application/json
metadata
object

Custom metadata. Replaces existing metadata wholesale unless mergeMetadata is true.

Example:
mergeMetadata
boolean

When true, the provided metadata keys are merged into the existing metadata instead of replacing it entirely

Example:

true

status
enum<string>

Account status

Available options:
not_started,
in_progress,
passed,
failed,
expired
Example:

"passed"

initialBalance
number

Initial account balance

Example:

100000

currentBalance
number

Current account balance

Example:

105000

highWaterMark
number

Highest balance achieved

Example:

107500

customerId
string

Reassign the account to a different customer of yours (resale, correction). Cannot be cleared — every account always has a customerId. On linked accounts the new customerId must not be bound to a different Hyperprop login (409 CUSTOMER_ALREADY_BOUND).

Maximum string length: 255
Example:

"mffu-cust-4471"

externalRef
string

DEPRECATED alias for customerId — use customerId instead. Null is ignored (customerId cannot be cleared).

Maximum string length: 255
Example:

"mffu-cust-4471"

reason
string

Reason for the change (logged in audit trail)

Example:

"Balance adjustment for data feed error"

Response

Account updated successfully

success
boolean
Example:

true

message
string
Example:

"Trading account updated successfully"

data
object