v2

latestOpenAPI 3.0.02026-08-07103189636.5 KB
Jobs

Add strings to job

Adding strings to a job is useful if you don't manage strings / content through files, but instead need to add strings by some other means other than files.

When strings are successfully added to a job, a 200 status is returned. When the system can't quickly add strings to the job, a 202 response status is returned. The response contains a link and processUid to check the progress of the request. When a 202 is received, the process of adding the content to the job will not be complete until the returned process has completed.

post/jobs-api/v3/projects/{projectId}/jobs/{translationJobUid}/strings/add

Path parameters

projectIdstring required

A unique project identifier. This can be found in the Smartling Dashboard under Account Settings > API.

translationJobUidstring required

Request body

hashcodesstring[]

The array of hashcodes to use to add to the job. The hashcodes must exist within Smartling, for the project, in order to be added to a job. Hashcodes are required when adding strings to a job. Hashcodes are limited to 1000 per API call.

moveEnabledboolean

(Optional), default is false. A string for a locale can only be in one job. If the string identified in the request is already in a job for a locale then it won't be added. However, moveEnabled=true can be specified, and in this case, the string will be moved into the specified job.

targetLocaleIdsstring[]

The array of localeIds that strings should be added to. If it's not specified, the strings will be added to all locales within that job. If it's specified, the strings will only be added for the locales provided. If the locales were not already part of the job, the job will be extended to contain the additional locales.

Response

OK