Skip to main content

PATCH /flexi/cancel/:id

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

Refused once payment has been detected (including a token payment that the worker has already accepted) — 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 id.

Response 200​

{ "message": "Bot canceled" }

Errors​

StatusMeaning
400Bot not in a cancellable state, or its payment was accepted in the meantime.
403Bot not owned by caller.
404Bot not found.

Example​

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