Organization
Bulk update trading accounts
Bulk update multiple trading accounts at once. Admin only.
All changes are logged to the audit trail with the batch ID for easy tracking.
Filters (at least one required):
| Filter | Description |
|---|---|
accountIds | Specific account IDs to update |
status | Filter by current status |
createdAfter / createdBefore | Filter by creation date |
startedAfter / startedBefore | Filter by start timestamp |
tradingPlanId | Filter by trading plan |
userId | Filter by user ID |
Updates (at least one required):
| Update | Description |
|---|---|
status | Change status |
currentBalance | Set new balance |
highWaterMark | Set new high water mark |
dailyStartingBalance | Set new daily starting balance |
violationReason | Set or clear (null) violation reason |
performanceData | Replace performance data |
metadata | Replace metadata |
resetToInitial | Reset to initial balance + in_progress status |
Safety:
- A reason is required for all bulk updates
- Max 100 accounts without specifying accountIds
- All changes are logged with before/after values
Example - Reset failed accounts after outage:
curl -X POST "https://api.example.com/platform/v1/organization/trading-accounts/bulk-update" \
-H "X-API-Key: hp_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"filters": {
"status": "failed",
"startedAfter": "2026-02-17T14:00:00Z",
"startedBefore": "2026-02-17T16:00:00Z"
},
"updates": {
"resetToInitial": true
},
"reason": "Outage compensation - server incident Feb 17 14:00-16:00"
}'
Example - Bulk fail accounts:
curl -X POST ".../bulk-update" \
-d '{
"filters": { "accountIds": ["id1", "id2", "id3"] },
"updates": { "status": "failed", "violationReason": "Terms of service violation" },
"reason": "ToS violation - detected automated trading"
}'
Error Codes:
| Code | Description |
|---|---|
REASON_REQUIRED | Reason must be at least 3 characters |
NO_ACCOUNTS_FOUND | No accounts match the filters |
TOO_MANY_ACCOUNTS | Over 100 accounts without specific IDs |
NO_FIELDS_TO_UPDATE | No valid update fields provided |
POST
Bulk update trading accounts
Authorizations
JWT Bearer token for user session auth. Format: "Bearer {token}". Used by User and Organization endpoints.
Body
application/json
Related topics
Bulk update copy trading group followersTime Machine — bulk revert accounts to a trading dayUpdate a trading accountGet bulk operation detailsBulk-create unlinked accounts with import keys