Skip to main content

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

ParamRequiredDescription
idyesBot 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

StatusMeaning
400Bot not running, insufficient balance, or already scheduled to split / merge / stop.
404Bot not found or not owned.

Example

curl -X PATCH "$BASE_URL/flexi/split/<botId>" \
-H "Authorization: Bearer $ACCESS" \
-H "x-user-id: $USER_ID"