# Retry job Retry a failed sync or reset job. Retries a failed job, creating a new job attempt with the same configuration. #### Path Parameters **`job_id`** string required The ID of the failed job to retry. ## Returns A new job object with `status` set to `pending`. Request ```bash cURL curl -X POST "https://api.aitronos.com/v1/organizations/org_xyz789/knowledge/connectors/jobs/job_abc123/retry" \ -H "Authorization: Bearer $ACCESS_TOKEN" ``` ```python Python SDK from aitronos import Aitronos client = Aitronos(api_key="your-api-key") result = client.knowledge_connectors.retry_job( organization_id="org_xyz789", job_id="job_abc123", ) print(result) ``` ```python Python import requests org_id = "org_xyz789" job_id = "job_abc123" url = f"https://api.aitronos.com/v1/organizations/{org_id}/knowledge/connectors/jobs/{job_id}/retry" headers = {"Authorization": "Bearer YOUR_ACCESS_TOKEN"} response = requests.post(url, headers=headers) print(response.json()) ``` ```javascript JavaScript const response = await fetch( "https://api.aitronos.com/v1/organizations/org_xyz789/knowledge/connectors/jobs/job_abc123/retry", { method: "POST", headers: { Authorization: "Bearer YOUR_ACCESS_TOKEN" }, } ); const data = await response.json(); console.log(data); ``` Response ```json 200 OK { "job_id": "job_def456", "status": "pending", "job_type": "sync", "connection_id": "conn_abc123" } ``` ```json 4xx Error { "success": false, "error": { "code": "CONNECTOR_JOB_RETRY_FAILED", "message": "Failed to retry the job.", "type": "client_error", "status": 400, "details": {}, "trace_id": "abc-123-def", "timestamp": "2025-12-22T15:30:00Z" } } ``` ## Related Resources - [Manage Jobs](/docs/api-reference/knowledge-connectors/jobs) - [Job Logs](/docs/api-reference/knowledge-connectors/job-logs)