PATCH /flexi/pause/bulk
Pause multiple bots at once.
Bots stop executing swaps; funds stay untouched.
Use case
Temporarily halt a group of bots while retaining their state and funds, then resume them later without restarting from scratch.
Body
| Field | Type | Required | Description |
|---|---|---|---|
botIds | string[] | yes | 1–100 bot ObjectIds, no duplicates. |
Response 200
{ "message": "Bots paused" }
Errors
| Status | Meaning |
|---|---|
400 | No active bots matched (none are running, or all are paused / scheduled to stop). |
Example
curl -X PATCH "$BASE_URL/flexi/pause/bulk" \
-H "Authorization: Bearer $ACCESS" \
-H "x-user-id: $USER_ID" \
-H "Content-Type: application/json" \
-d '{ "botIds": ["<id1>", "<id2>"] }'