Set UTM start date
PATCH/api/v1/accounts/:accountId/utm-start-date
Set or clear the UTM start date for an account. Trades and broker positions opened before this date are excluded from reconciliation. Send null to clear the date.
Reconciliation backfill runs as part of the same request so the database matches what the reconciliation page shows:
- When the date is set or moved later, orphan executions (tradeId
IS NULL) whose linkState is
pending_reviewand which fall before the new date are flipped toignored. - When the date is cleared, orphan executions whose linkState is
ignoredand which fell before the previous date are flipped back topending_reviewso they reappear in the reconciliation queue.
Request
Responses
- 200
- 400
- 401
- 404
- 500
UTM start date updated
Invalid request body - utmStartDate must be a valid YYYY-MM-DD date string or null
Authentication required
Account not found or access denied
Server error