Add file to a batch
Changed onThis endpoint is actually a proxy for Upload File in the Files API, and it works with these two differences:
- It additionally gets batchUid as a path parameter.
- It doesn't relay localeIdsToAuthorize to Files Api, therefore the file stays unauthorized. Instead, localeIdsToAuthorize are saved just for this batch session and are used when a file is being attached to a job.
When the first file is added to the new batch, it becomes an ADDING_FILES status. Adds original source content to a Job batch in Smartling.
The curl example provided will upload your Java properties file directly to a Smartling project, identified by the projectId, and attaches it to a Job linked to batchUid. The response is returned right after the content of a file is accepted by the Files API. After that, the Batch service controls whether the file upload finished. Content is parsed, all strings are ingested, and the file is then attached to the Job which is linked to the batch for locales, described in localeIdsToAuthorize.
Request
- Base URLhttps://api.smartling.com
- AuthHTTP bearer
Path parameters
Unique identifier of a Smartling project — 9 lowercase alphanumeric characters.
A unique project identifier. This can be found in the Smartling Dashboard under Account Settings > API.
A unique identifier for a batch.
Request body multipart/form-data
Example request
{
"localeIdsToAuthorize[]": [
"fr-FR"
]
}Response
ACCEPTED
Changes
- info
endpoint added
- info
- breaking
api removed without deprecation
- breaking