Skip to main content

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

FieldTypeRequiredDescription
botIdsstring[]yes1–100 bot ObjectIds, no duplicates.

Response 200

{ "message": "Bots paused" }

Errors

StatusMeaning
400No 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>"] }'