Skip to main content
PATCH
Patches the strategy’s stored preference overrides. Swap settings live under the swap namespace: slippageBps, priceImpactBps, and thresholdUsd.
  • Auth: x-api-key header (required)
  • Required scope: strategies:write

Patch semantics

Patches are applied per inner field within swap:
  • Omitted field — preserve the current value
  • Explicit null — clear the field
  • Explicit value — set the field
Empty body {} and { "swap": {} } are both 200 no-ops.

Clearing all preferences

To remove every per-strategy override and fall back to the tenant defaults, send a PATCH with all swap fields set to null:
The strategy’s schedule is unaffected. There is no dedicated DELETE endpoint.

Schedule is rejected

This endpoint patches preferences only. To change the schedule, call PUT /v2/strategies/{strategyId}/schedule. Sending a schedule field here returns 400.

Cross-tenant access

Returns 404 — strategies you don’t own are not exposed.