# Retry processing Retry processing for a failed file in a knowledge store. Resets the processing status of a file to `pending` and re-enqueues it for processing. Use this after a file has failed processing to attempt it again. #### Path Parameters **`organization_id`** string required The unique identifier of the organization (format: `org_*`). **`store_id`** string required The unique identifier of the vector store. **`file_id`** string required The unique identifier of the file (format: `file_*`). ## Returns The updated processing status object with status reset to `pending`. Request ```bash cURL curl -X POST "https://api.aitronos.com/v1/organizations/org_xyz789/stores/vs_abc123/files/file_abc123def456/retry" \ -H "Authorization: Bearer $ACCESS_TOKEN" ``` ```python Python SDK from aitronos import Aitronos client = Aitronos(api_key="your-api-key") result = client.knowledge.retry_processing( organization_id="org_xyz789", store_id="vs_abc123", file_id="file_abc123def456", ) print(result) ``` ```python Python import requests org_id = "org_xyz789" store_id = "vs_abc123" file_id = "file_abc123def456" url = f"https://api.aitronos.com/v1/organizations/{org_id}/stores/{store_id}/files/{file_id}/retry" headers = { "Authorization": "Bearer YOUR_ACCESS_TOKEN", } response = requests.post(url, headers=headers) print(response.json()) ``` ```javascript JavaScript const orgId = "org_xyz789"; const storeId = "vs_abc123"; const fileId = "file_abc123def456"; const response = await fetch( `https://api.aitronos.com/v1/organizations/${orgId}/stores/${storeId}/files/${fileId}/retry`, { method: "POST", headers: { Authorization: `Bearer ${accessToken}`, }, } ); const data = await response.json(); console.log(data); ``` Response ```json 200 OK { "status": "pending", "progress_percent": 0, "current_step": "queued", "error_message": null, "started_at": null, "completed_at": null } ``` ```json 404 Error { "success": false, "error": { "code": "FILE_NOT_IN_STORE", "message": "We couldn't find the requested resource.", "system_message": "File not found in this store", "type": "client_error", "status": 404, "details": { "file_id": "file_abc123def456", "store_id": "vs_abc123" }, "trace_id": "abc-123-def", "timestamp": "2025-06-15T10:00:00Z" } } ``` ## Related Resources - [Upload File](/docs/api-reference/knowledge/upload-file) - [Get Upload URL](/docs/api-reference/knowledge/upload-url) - [Register Upload](/docs/api-reference/knowledge/register-upload) - [List Files](/docs/api-reference/knowledge/list-files) - [Get File](/docs/api-reference/knowledge/get-file) - [Delete File](/docs/api-reference/knowledge/delete-file) - [Bulk Remove Files](/docs/api-reference/knowledge/bulk-remove) - [Processing Status](/docs/api-reference/knowledge/processing-status) - [Processing Logs](/docs/api-reference/knowledge/processing-logs) - [File Config](/docs/api-reference/knowledge/file-config) - [Storage Usage](/docs/api-reference/knowledge/storage-usage)