list_assignments_for_hit
async
¶
list_assignments_for_hit(
hit_id: EntityId,
*,
config_overrides: Optional[AsyncMTurkClientConfig] = None,
next_token: Optional[PaginationToken] = None,
max_results: Optional[ResultSize] = None,
assignment_statuses: Optional[AssignmentStatusList] = None,
) -> ListAssignmentsForHITResponse
The ListAssignmentsForHIT operation retrieves completed assignments for a HIT. You can use this operation to retrieve the results for a HIT.
You can get assignments for a HIT at any time, even if the HIT is not yet Reviewable. If a HIT requested multiple assignments, and has received some results but has not yet become Reviewable, you can still retrieve the partial results with this operation.
Use the AssignmentStatus parameter to control which set of assignments for a HIT are returned. The ListAssignmentsForHIT operation can return submitted assignments awaiting approval, or it can return assignments that have already been approved or rejected. You can set AssignmentStatus=Approved,Rejected to get assignments that have already been approved and rejected together in one result set.
Only the Requester who created the HIT can retrieve the assignments for that HIT.
Results are sorted and divided into numbered pages and the operation returns a single page of results. You can use the parameters of the operation to control sorting and pagination.
Parameters:
-
hit_id(EntityId) –The ID of the HIT.
-
next_token(Optional[PaginationToken], default:None) –Pagination token
-
assignment_statuses(Optional[AssignmentStatusList], default:None) –The status of the assignments to return: Submitted | Approved | Rejected
Raises:
-
RequestError–Your request is invalid.
-
ServiceFault–Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_mturk/_services/async_m_turk.py
1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 | |