Get a specific assignment
Ok
Missing or Invalid id
Assignment not found
assignment = task.assignments.get(assignment_id='assignment_id') # # Get Assignment object to use it in your code. # # :param str assignment_name: optional - search by name # :param str assignment_id: optional - search by id # :return: Assignment object # :rtype: dtlpy.entities.assignment.Assignment # #
{- "id": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "name": "string",
- "annotator": "string",
- "status": "todo",
- "projectId": "string",
- "metadata": {
- "system": {
- "property1": null,
- "property2": null
}
}, - "totalItems": 0,
- "itemStatus": {
- "completed": 0,
- "remaining": 0,
- "actions": {
- "property1": 0,
- "property2": 0
}
}, - "taskType": "string",
- "progress": 0,
- "forReview": 0,
- "issues": 0,
- "inRedistributeProcess": "2019-08-24T14:15:22Z",
- "error": "string",
- "priority": 0
}