PDF Generation Template Editor
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
Use this API to cancel an async file-processing task that is still pending or processing.
| Item | Value |
|---|---|
| Request URL | POST http://localhost:8080/api/v1/task/{id}/cancel |
| Authentication | x-api-key: your_api_key_here |
| Content type | application/json |
curl -X POST "http://localhost:8080/api/v1/task/7fdc1fb6-1f4d-4b5c-88d6-4b4c4c1e8f44/cancel" \
-H "x-api-key: your_api_key_here"{
"code": 200,
"msg": "success",
"data": {
"taskId": "7fdc1fb6-1f4d-4b5c-88d6-4b4c4c1e8f44",
"status": "canceled",
"failureCode": "TASK_CANCELED",
"failureReason": "task canceled by client"
}
}Tasks that already reached success or failed keep their final status.