Delete Job
Permanently deletes one or more analysis jobs and their associated results. Only the job owner can delete jobs. Once deleted, jobs and their results cannot be recovered.
Delete Job
Permanently deletes one or more analysis jobs and their associated results. Only the job owner can delete jobs. Once deleted, jobs and their results cannot be recovered.
API Endpoint
POST /analysis/job/delete
HTTP Headers
- Content-Type:
application/json
- X-Cursed-Api-Token: API token for authentication
Request Method
POST
Parameters
Request Body (JSON):
Parameter | Type | Required | Description |
---|---|---|---|
ids | array | Yes | Array of job UUIDs to delete |
Request Body Schema
{
"ids": ["string (UUID)", "string (UUID)", ...]
}
Response Format
Success Response (200 OK):
{
"message": "Job deleted successfully"
}
Error Response (400 Bad Request):
Invalid job ID format
Error Response (401 Unauthorized):
Unauthorized
Error Response (404 Not Found):
Job ID not found
Error Codes
HTTP Status | Description |
---|---|
200 | Success - Job(s) deleted successfully |
400 | Bad Request - Invalid job ID format |
401 | Unauthorized - Missing or invalid authentication |
404 | Not Found - Job not found or user doesn't have access |
500 | Internal Server Error - Server processing error |
Example cURL Command
Delete Single Job
curl -X POST https://api.cursedtools.com/analysis/job/delete \
-H "Content-Type: application/json" \
-H "X-Cursed-Api-Token: your_api_token" \
-d '{
"ids": ["123e4567-e89b-12d3-a456-426614174000"]
}'
Delete Multiple Jobs
curl -X POST https://api.cursedtools.com/analysis/job/delete \
-H "Content-Type: application/json" \
-H "X-Cursed-Api-Token: your_api_token" \
-d '{
"ids": [
"d829053e-2d24-4f93-bfd0-14e36e160930",
"a72a10f9-b8b3-4ba5-bd15-9418a37a3202",
"789e0123-e89b-12d3-a456-426614174002"
]
}'
Example with API Token
curl -X POST https://api.cursedtools.com/analysis/job/delete \
-H "Content-Type: application/json" \
-H "X-Cursed-Api-Token: your_api_token" \
-d '{
"ids": ["123e4567-e89b-12d3-a456-426614174000"]
}'
Notes
- Only authenticated users can delete jobs
- Only the job owner can delete their jobs
- Jobs are permanently deleted and cannot be recovered
- The endpoint accepts multiple job IDs for bulk deletion
- If any job in the list fails to delete, the entire operation may fail
- Both completed and failed jobs can be deleted
- Running jobs should be cancelled before deletion
File Upload API
Secure file upload with immediate server-side encryption and in-memory only operations for cybersecurity investigation files.
List Jobs
Retrieves a list of all analysis jobs owned by the authenticated user. Returns job metadata including ID, name, status, creation date, visibility, and job type.