{
  "opencollection": "1.0.0",
  "info": {
    "name": "Salesforce Bulk API 2.0 Abort Ingest Job Data API",
    "version": "v63.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Ingest Job Data",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Salesforce Upload Job Data (csv)",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://{instance}.salesforce.com/services/data/v{version}/jobs/ingest/:jobId/batches",
            "params": [
              {
                "name": "jobId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the Bulk API 2.0 job."
              }
            ]
          },
          "docs": "Uploads CSV data to an ingest job that is in the Open state. The CSV must include a header row matching the field API names for the object. Multiple upload calls can be made for the same job; data is appended. After uploading all data, close the job with PATCH /ingest/{jobId} to begin processing.\n"
        },
        {
          "info": {
            "name": "Salesforce Get Successful Records From an Ingest Job",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{instance}.salesforce.com/services/data/v{version}/jobs/ingest/:jobId/successfulResults",
            "params": [
              {
                "name": "jobId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the Bulk API 2.0 job."
              }
            ]
          },
          "docs": "Returns a CSV file containing the records that were successfully processed by the ingest job. Each row corresponds to a record from the uploaded data that was inserted, updated, upserted, or deleted successfully. Only available after the job reaches JobComplete state.\n"
        },
        {
          "info": {
            "name": "Salesforce Get Failed Records From an Ingest Job",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{instance}.salesforce.com/services/data/v{version}/jobs/ingest/:jobId/failedResults",
            "params": [
              {
                "name": "jobId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the Bulk API 2.0 job."
              }
            ]
          },
          "docs": "Returns a CSV file containing the records from the ingest job that failed to process. Each row includes the original record data plus sf__Error and sf__Id columns describing the failure reason. Use this to identify and fix records that need to be resubmitted.\n"
        },
        {
          "info": {
            "name": "Salesforce Get Unprocessed Records From an Ingest Job",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{instance}.salesforce.com/services/data/v{version}/jobs/ingest/:jobId/unprocessedrecords",
            "params": [
              {
                "name": "jobId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the Bulk API 2.0 job."
              }
            ]
          },
          "docs": "Returns a CSV file containing the records from the ingest job that were not processed, typically because the job was aborted before processing completed. Use these records to resubmit them in a new job.\n"
        }
      ]
    }
  ],
  "bundled": true
}