Newer Version Available

This content describes an older version of this product. View Latest

Closing a Job

Close a job by sending a POST request to the following URI. The request URI identifies the job to close. When a job is closed, no more batches can be added.

URI
https://instance_name—api.salesforce.com/services/async/APIversion/job/jobId
Example request body
1<?xml version="1.0" encoding="UTF-8"?>
2<jobInfo
3   xmlns="http://www.force.com/2009/06/asyncapi/dataload">
4 <state>Closed</state>
5</jobInfo>
Example response body
1<?xml version="1.0" encoding="UTF-8"?>
2<jobInfo
3   xmlns="http://www.force.com/2009/06/asyncapi/dataload">
4 <id>750D0000000002lIAA</id>
5 <operation>insert</operation>
6 <object>Account</object>
7 <createdById>005D0000001ALVFIA4</createdById>
8 <createdDate>2009-04-14T18:15:59.000Z</createdDate>
9 <systemModstamp>2009-04-14T18:15:59.000Z</systemModstamp>
10 <state>Closed</state>
11</jobInfo>