Close or Abort a Job
Closes or aborts a job. If you close a job, Salesforce queues the job and uploaded
data for processing, and you can’t add any additional job data. If you abort a job, the job does
not get queued or processed.
- URI
- /services/data/vXX.X/jobs/ingest/jobID
- Formats
- JSON
- HTTP Method
- PATCH
- Authentication
- Authorization: Bearer token
- Parameters
- None.
- Request Body
-
Property Type Description Required or Optional state JobStateEnum The state to update the job to. Use UploadComplete to close a job, or Aborted to abort a job. Required - Response Body
-
Property Type Description apiVersion string The API version that the job was created in. columnDelimiter ColumnDelimiterEnum The column delimiter used for CSV job data. Values include: - BACKQUOTE—backquote character (`)
- CARET—caret character (^)
- COMMA—comma character (,) which is the default delimiter
- PIPE—pipe character (|)
- SEMICOLON—semicolon character (;)
- TAB—tab character
concurrencyMode ConcurrencyModeEnum The concurrency mode for the job. Values include: - Parallel: Process records in parallel mode. This is the default value.
- Serial: Process records in serial mode. Processing in parallel can cause database contention. When this is severe, the job can fail. If you’re experiencing this issue, submit the job with serial concurrency mode. This mode guarantees that records are processed serially, but can significantly increase the processing time.
contentType ContentType The format of the data being processed. Only CSV is supported. contentUrl URL The URL to use for Upload Job Data requests for this job. Only valid if the job is in Open state. createdById string The ID of the user who created the job. createdDate dateTime The date and time in the UTC time zone when the job was created. externalIdFieldName string The name of the external ID field for an upsert. id string Unique ID for this job. jobType JobTypeEnum The job’s type. Values include: - BigObjectIngest—BigObjects job
- Classic—Bulk API 1.0 job
- V2Ingest—Bulk API 2.0 job
lineEnding LineEndingEnum The line ending used for CSV job data. Values include: - LF—linefeed character
- CRLF—carriage return character followed by a linefeed character
object string The object type for the data being processed. operation The processing operation for the job. Values include: - insert
- delete
- update
- upsert
state JobStateEnum The current state of processing for the job. Values include: - Open—The job has been created, and data can be added to the job.
- UploadComplete—No new data can be added to this job. You can’t edit or save a closed job.
- Aborted—The job has been aborted. You can abort a job if you created it or if you have the “Manage Data Integrations” permission.
- JobComplete—The job was processed by Salesforce.
- Failed—The job has failed. Job data that was successfully processed isn’t rolled back.
systemModstamp dateTime Date and time in the UTC time zone when the job finished.