PATCH /flexi/split/:id
Split one running bot into two. Remaining SOL is divided 50/50 and a sibling bot is created alongside.
Async — the split runs in the background; no follow-up call needed.
Use case
Increase parallelism mid-campaign — one bot with 4 SOL running at one cadence becomes two bots with 2 SOL each, doubling concurrent swap activity.
Path params
| Param | Required | Description |
|---|---|---|
id | yes | Bot ObjectId. |
Requirements
Bot must be in RUNNING state and have at least 0.3 SOL balance.
Response 200
{ "message": "Bot marked to be split" }
Errors
| Status | Meaning |
|---|---|
400 | Bot not running, insufficient balance, or already scheduled to split / merge / stop. |
404 | Bot not found or not owned. |
Example
curl -X PATCH "$BASE_URL/flexi/split/<botId>" \
-H "Authorization: Bearer $ACCESS" \
-H "x-user-id: $USER_ID"