To create a task with attributes, simply add the annotation_attributes
parameter to your task creation request using the format described above.
{
"callback_url": "http://www.example.com/callback",
"instruction": "Draw boxes around the vehicles in the image.",
"attachment_type": "image",
"attachment": "http://i.imgur.com/v4cBreD.jpg",
"geometries": {
"box": {
"objects_to_annotate": ["car","pedestrian"],
}
}
"annotation_attributes": {
"parked": {
"description": "Is the car currently parked?",
"choices": [
"Yes",
"No"
]
},
"heading": {
"description": "Which direction is the car heading",
"choices": [
"left",
"right",
"back",
"front"
],
"conditions": {
"label_condition": {
"label": "car"
},
"attribute_conditions": [
{
"parked": "No"
}
]
}
}
}
}