POST /resources/wrappers//stop
Stop a running wrapper. This is a universal endpoint that works for all wrapper types (API, CSV, XLSX). The internal implementation varies by wrapper type, but the API interface is consistent.Authentication
This endpoint requires authentication. Include your API key in the request headers.Path Parameters
The unique identifier of the wrapper to stop
Response
The wrapper ID that was stopped
Whether the wrapper was stopped successfully
Human-readable message describing the result:
- “Wrapper stopped successfully” if successful
- “Failed to stop wrapper” if unsuccessful
Example Request
cURL
Example Response (Success)
Example Response (Failure)
Error Responses
400 Bad Request
Stop operation error. Common causes:
- Wrapper not found
- Process lookup error
- Permission denied
Behavior by Wrapper Type
API Wrappers:- Terminates the running process
- Updates wrapper status to
stopped - Preserves checkpoint data (high/low water marks) for resumption
- These typically complete quickly and may not be running when stop is called
- Returns success if wrapper is already completed
- No action needed if wrapper is not actively executing
Notes
- The endpoint is idempotent - calling it multiple times has the same effect
- Stopping a wrapper preserves its state and execution history
- Stopped wrappers can be restarted by calling the execute endpoint
- For API wrappers, the wrapper will resume from its last checkpoint when restarted