Create a job
A JOB
POST
https://api.playment.io/v1/projects/:project_id/jobs
This endpoint allows you to create a job
Path Parameters
Name | Type | Description |
---|---|---|
project_id | string | ID of the project in which you want to create the job |
Headers
Name | Type | Description |
---|---|---|
x-api-key | string | API key for authentication |
Request Body
Name | Type | Description |
---|---|---|
batch_id | string | A batch is a way to organise multiple jobs under one |
work_flow_id | string | The ID of the workflow inside which you want to create the job |
data | object | The |
reference_id | string | The unique identifier of the job |
Payload
Payload Definition
Key | Type | Description |
|
| The This is an
|
|
| URL of the image. |
Code Example
Creating jobs with pre-labeled data
If you have data which has been labeled previously by an ML model or by human labelers, you can create jobs with such labels already created. To do this, you need to send the annotation data in the data.maker_response
key in the payload. The annotation data needs to be in Playment's annotation format.
Here's an example:
The object at the end ofdata.maker_response.raster.data.url
should be a PNG file with four 8-bit channels. The first 3 channels are R, G & B respectively. The hex code for these RGB values for any pixel should map to a class or instance based on thelegend
object. Un-labeled pixels should have each channel as 0.
Last updated