TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/xcoder-es/media-cleaner-pro/llms.txt
Use this file to discover all available pages before exploring further.
/api/control endpoint lets you change the execution state of a running job without restarting the server. Sending "pause" suspends the pipeline after the current image finishes processing; "resume" continues from where it left off; "cancel" fires a cancellation token that triggers a clean shutdown of the background task. All three actions return the updated is_running and is_paused flags so you can confirm the state transition in a single round trip.
Request body
The control action to execute. Must be one of the following values:
| Value | Effect |
|---|---|
"pause" | Sets is_paused to true. The pipeline completes the image it is currently processing and then waits. No data is lost; the job can be resumed at any time. |
"resume" | Sets is_paused to false. The pipeline immediately continues from the point at which it was paused. |
"cancel" | Triggers the internal CancellationToken. The background task performs a clean shutdown and sets is_running to false. The job cannot be resumed after cancellation. |
Response fields
true if the action was recognised and applied. An unrecognised action string is silently ignored and also returns true — validate the action echo field if you need to confirm the action was applied.Echoes the
action string from the request, allowing you to correlate responses when multiple control requests are issued in quick succession.Reflects the updated running state after the action was applied. Will be
false after a successful "cancel".Reflects the updated paused state after the action was applied. Will be
true after "pause" and false after "resume" or "cancel".