Get all running and pending batch operations
GET/v2/projects/:projectId/current-batch-jobs
Returns all running and pending batch operations. Completed batch operations are returned only if they are not older than 1 hour. If user doesn't have permission to view all batch operations, only their operations are returned.
Request
Path Parameters
Responses
- 200
- 400
- 401
- 403
- 404
OK
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
_embedded object
batchJobs object[]
Batch job id
Possible values: [PENDING
, RUNNING
, SUCCESS
, FAILED
, CANCELLED
, DEBOUNCED
]
Status of the batch job
Possible values: [PRE_TRANSLATE_BT_TM
, MACHINE_TRANSLATE
, AUTO_TRANSLATE
, DELETE_KEYS
, SET_TRANSLATIONS_STATE
, CLEAR_TRANSLATIONS
, COPY_TRANSLATIONS
, TAG_KEYS
, UNTAG_KEYS
, SET_KEYS_NAMESPACE
, AUTOMATION
]
Type of the batch job
Total items, that have been processed so far
Total items
author object
User who created the comment
avatar object
The time when the job created
The time when the job was last updated (status change)
The activity revision id, that stores the activity details of the job
If the job failed, this is the error message
{
"_embedded": {
"batchJobs": [
{
"id": 0,
"status": "PENDING",
"type": "PRE_TRANSLATE_BT_TM",
"progress": 0,
"totalItems": 0,
"author": {
"id": 0,
"username": "string",
"name": "string",
"avatar": {
"large": "string",
"thumbnail": "string"
},
"deleted": true
},
"createdAt": 0,
"updatedAt": 0,
"activityRevisionId": 0,
"errorMessage": "string"
}
]
}
}
Bad Request
- */*
- Schema
Schema
string
Unauthorized
- */*
- Schema
Schema
string
Forbidden
- */*
- Schema
Schema
string
Not Found
- */*
- Schema
Schema
string