Skip to main content

PATCH /flexi/cancel/:id

Cancel a single bot. Only bots in status '1' (awaiting payment) can be cancelled.

No effect once payment has been detected — use /flexi/stop/bulk for running bots.

Use case

Drop one bot from an initiated group before funding (e.g. user decreases campaign size).

Path params

ParamRequiredDescription
idyesBot ObjectId.

Response 200

{ "message": "Bot canceled" }

Errors

StatusMeaning
400Bot not in a cancellable state.
404Bot not found or not owned.

Example

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