get http://api.playment.in/v1/projects/ <project_id>/batch/<batch_id>
GET
https://api.playment.io/v0/projects/ <project_id>/batch/<batch_id>
or
GET
https://api.playment.io/v0/projects/<project_id>/batch/ <batch_id>?page_token=<next_page_token>
Parameters
project_id
: To be passed in the URL
x-api-key
: Secret key to be passed as a header
- By default, it will provide the first 100 jobs of a particular batch_id.
- To get the next 100 jobs, provide
**page_token**
param in the API request. The value of this page_token can be taken from the key**next_page_token**
provided in the response structure
{
"data": {
"id": "",
"project_id": "",
"name": "Batch 1 - 20190810",
"jobs": [
{
"id": "fde5ert6-eb32-481a-807a-03a0428ca836",
"reference_id": "001",
"status": "completed",
"frames": 1,
"annotations": 1,
"priority_weight": 5,
"tag": "sample-task",
"viewer_url": ""
},
{
"id": "fdda8970-dr3d-4978-9ce3-e80654d8078c",
"reference_id": "002",
"status": "completed",
"frames": 1,
"annotations": 1,
"priority_weight": 5,
"tag": "sample-task",
"viewer_url": ""
}
],
"next_page_token": "1575822103313046000"
},
"success": true
}
Response Structure
name | String name of the batch |
jobs | List of the jobs with details in the asked batch |
jobs.id | String ID of the job |
jobs.reference_id | String reference id of the job |
jobs.status | String status of the job indicating if it has been completed or not |
jobs.frames | Number total number of frames in this job |
jobs.annotations | Number total number of annotations in this job |
jobs.priority_weight | Number Priority weight among all the batches |
jobs.tag | String indicating what kind of operation was performed |
jobs.viewer_url | String Viewer URL |
next_page_token | String token to be passed in the request URL to get the result of next 100 jobs.GET https://api.playment.io/v0/projects/<project_id>/batch/ <batch_id>?page_token=<next_page_token> |