Smaws_Client_MTurk.DeleteHITThe DeleteHIT operation is used to delete HIT that is no longer needed. Only the Requester who created the HIT can delete it.
You can only dispose of HITs that are in the Reviewable state, with all of their submitted assignments already either approved or rejected. If you call the DeleteHIT operation on a HIT that is not in the Reviewable state (for example, that has not expired, or still has active assignments), or on a HIT that is Reviewable but without all of its submitted assignments already approved or rejected, the service will return an error.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `RequestError of Types.request_error
| `ServiceFault of Types.service_fault ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.delete_hit_request ->
(Types.delete_hit_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `RequestError of Types.request_error
| `ServiceFault of Types.service_fault ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.delete_hit_request ->
(Types.delete_hit_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `RequestError of Types.request_error
| `ServiceFault of Types.service_fault ]
* Smaws_Lib.Response.metadata)
Stdlib.result