Uploads a .csv
file for a custom object bulk job to create or update custom object records. The job must be in pending
status. Only one file is allowed per job. Each file supports only one type of operation, with an id
column required for update operations. The job will start once the upload is finished.
Only the users that have the "Edit Custom Objects" permission can upload files to custom object bulk jobs. See Platform Permissions for more information.
Accept-Encoding | string Include the If specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a |
Content-Encoding | string Include the |
Zuora-Track-Id | string <= 64 characters A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue. The value of this field must use the US-ASCII character set and must not include any of the following characters: colon ( |
Zuora-Entity-Ids | string An entity ID. If you have Zuora Multi-entity enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header. |
Zuora-Org-Ids | string Comma separated IDs. If you have Zuora Multi-Org enabled, you can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header. The IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. If the header is not set, the operation is performed in scope of the user's accessible orgs. |
Authorization required | string The value is in the |
Zuora-Version | string <date> API version that determines the response schema. The default version is used if this parameter is not included. Specify |
Content-Type required | string The |
The CSV file to be uploaded. The file must be encoded in UTF-8 and the file size limit is 15 MB.
OK
Bad request
Unauthorized
Job not found
curl -X POST -H "Authorization: Bearer e5cb941a9b1f47838b4085b4d5e00415" -H "Content-Type: text/csv" --data-binary "@CustomObjectRecords.csv" "https://rest.zuora.com/objects/jobs/5112347a-f7a1-4373-99df-c082984de7be/files"
{- "CreatedById": "2c92c0f96a07409d016a0a58ab1172ec",
- "CreatedDate": "2021-03-10T00:05:54.207Z",
- "Id": "5112347a-f7a1-4373-99df-c082984de7be",
- "UpdatedById": "2c92c0f96a07409d016a0a58ab1172ec",
- "UpdatedDate": "2021-03-10T00:08:15.539Z",
- "namespace": "default",
- "object": "vehicle",
- "operation": "create",
- "processingTime": 0,
- "recordsProcessed": 0,
- "status": "in_progress"
}