PATCH /flexi/interval/bulk
Bulk-update the swap-interval range on initiated and running bots.
Takes effect on the next swap cycle for each bot — no restart needed.
Use case
Tune cadence across a whole group in response to market conditions (slow down during illiquidity, speed up during a campaign push).
Body
| Field | Type | Required | Description |
|---|---|---|---|
botIds | string[] | yes | 1–20 bot ids, no duplicates. |
nMinWaitTime | integer | yes | Min seconds between swaps, 0–3599. |
nMaxWaitTime | integer | yes | 0–3599, ≥ nMinWaitTime. |
Response 200
{ "message": "Bots interval updated" }
Errors
| Status | Meaning |
|---|---|
400 | Validation failed (including nMaxWaitTime < nMinWaitTime). |
404 | None of the ids is an initiated or running bot of the caller. |
Example
curl -X PATCH "$BASE_URL/flexi/interval/bulk" \
-H "Authorization: Bearer $ACCESS" \
-H "x-user-id: $USER_ID" \
-H "Content-Type: application/json" \
-d '{ "botIds": ["<id1>"], "nMinWaitTime": 30, "nMaxWaitTime": 120 }'