Jobs
Create a Job
Changed onCreate a Job. A Job is a collection of Projects. A Job will contain multiple projects, based on the language pair. A Project is associated with exactly one Memory.
Jobs appear in the Jobs dashboard of the web app.
Example CURL command:
curl -X POST 'https://api.lilt.com/v2/jobs?key=API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "test job",
"fileIds": [5009, 5010, 5011],
"due": "2022-05-05T10:56:44.985Z",
"srcLang": "en",
"srcLocale": "US",
"languagePairs": [
{ "memoryId": 3121, "trgLang": "de" },
{ "memoryId": 2508, "trgLang": "fr" },
{ "memoryId": 3037, "trgLang": "zh" }
]
}'
post/v2/jobs
Request
- Base URLhttps://api.lilt.com
- URLhttps://api.lilt.com/v2/jobs
- AuthHTTP basic
Request body
Example request
{
"name": "My new Job",
"languagePairs": [
{
"trgLang": "de",
"trgLocale": "DE",
"dueDate": "2021-10-03T13:43:00.000Z",
"memoryId": 1241,
"externalModelId": 44,
"autoAccept": true,
"takeMatchAttribution": true,
"configId": 2332,
"workflowTemplateId": 14,
"workflowStageAssignments": [
{
"workflowStageTemplateId": 12345,
"userId": 123,
"email": "username@domain.com"
}
]
}
],
"fileIds": [
298,
299
],
"due": "2021-10-05T14:48:00.000Z",
"srcLang": "en",
"srcLocale": "US",
"isPlural": true,
"domainId": 1,
"requireQuotationApproval": true
}Response
A Job object.
Example response
{
"name": "My New Job",
"creationStatus": "COMPLETE",
"deliveredAt": "2021-06-03T13:43:00Z",
"status": "active",
"due": "2021-06-03T13:43:00Z",
"id": 241,
"stats": {
"projects": [
{
"srcLang": "en",
"srcLocale": "US",
"trgLang": "fr",
"trgLocale": "CA",
"name": "My new project",
"due": "2021-10-03T13:43:00.000Z",
"state": "inProgress",
"numSourceTokens": 2134,
"createdAt": "2021-04-01T13:43:00.000Z",
"updatedAt": "2021-06-03T13:43:00.000Z",
"memoryId": 2134,
"workflowStatus": "READY_TO_START",
"workflowName": "Translate > Review > Analyst Review"
}
],
"uniqueLanguagePairs": 1,
"uniqueLinguists": 1,
"workflowStatus": "READY_TO_START"
},
"domains": [
{
"id": 12,
"name": "Marketing"
}
]
}Changes
- breaking
added required request body
- info
api operation id
createJobwas added - info
added the non-success response with the status
- info
added the success response with the status
- breaking