Jobs Endpoint
Given a batch ID, fetch the job information created by a background operation.
Jobs are typically generated when you submit records via POST
and the server
processes them asynchronously.
Accessing the job
A GET
request retrieves the job status.
GET /api/v1/edc/studies/MOCK-STUDY/jobs/f89ceda2-f7c8-4939-859e-d3e967f315a1 HTTP/1.1
Content-Type: application/json
Host: localhost:8080
Path parameters
All parameters in the path are required.
Parameter |
Description |
---|---|
|
Study key used to look up the job state. |
|
Batch ID returned from the |
Example response
{
"jobId": "930720e7-4f3b-4452-be2b-f4233e5f433b",
"batchId": "9e9e8584-0c71-40f2-86ee-7d414766f7f2",
"state": "completed",
"dateCreated": "2020-12-01 21:47:36",
"dateStarted": "2020-12-01 21:47:42",
"dateFinished": "2020-12-01 21:47:45"
}
Response fields
Field |
Type |
Description |
---|---|---|
|
string |
Job identifier |
|
string |
Associated batch ID |
|
string |
Current job state |
|
string |
Timestamp when the job was created |
|
string |
Timestamp when processing started |
|
string |
Timestamp when processing completed |