/pause endpoint allows you to pause an active download. Paused downloads can be resumed later from the same position using the resume endpoint.
POST /pause
Pause a download that is currently active.Query Parameters
The unique download ID to pause. This is the ID returned when the download was created.
Request
Response
Returns a JSON object confirming the pause operation:Confirmation that the download was paused. Always returns
"paused".The ID of the paused download.
Response Example
Examples
Behavior
When you pause a download:- State is saved: The current download progress is saved to disk
- Connections close: All active connections for this download are closed
- Resources freed: Memory and network resources are released
- Resumable: The download can be resumed later from the exact same position
Pausing Multiple Downloads
To pause multiple downloads, you need to make separate API calls for each download ID:Error Responses
Use Cases
- Bandwidth Management: Pause large downloads during peak usage times
- User Control: Let users pause downloads manually through a UI
- Resource Constraints: Free up resources when system load is high
- Network Changes: Pause before switching networks (e.g., WiFi to mobile data)
- Scheduled Downloads: Pause during business hours, resume at night