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
| Param | Required | Description |
|---|---|---|
id | yes | Bot ObjectId. |
Response 200
{ "message": "Bot canceled" }
Errors
| Status | Meaning |
|---|---|
400 | Bot not in a cancellable state. |
404 | Bot not found or not owned. |
Example
curl -X PATCH "$BASE_URL/flexi/cancel/<botId>" \
-H "Authorization: Bearer $ACCESS" \
-H "x-user-id: $USER_ID"