Module Values.ApproveAssignmentRequestSource

The ApproveAssignment operation approves the results of a completed assignment. Approving an assignment initiates two payments from the Requester's Amazon.com account The Worker who submitted the results is paid the reward specified in the HIT. Amazon Mechanical Turk fees are debited. If the Requester's account does not have adequate funds for these payments, the call to ApproveAssignment returns an exception, and the approval is not processed. You can include an optional feedback message with the approval, which the Worker can see in the Status section of the web site. You can also call this operation for assignments that were previous rejected and approve them by explicitly overriding the previous rejection. This only works on rejected assignments that were submitted within the previous 30 days and only if the assignment's related HIT has not been deleted.

Sourcetype nonrec t = {
  1. assignmentId : EntityId.t;
    (*

    The ID of the assignment. The assignment must correspond to a HIT created by the Requester.

    *)
  2. requesterFeedback : String_.t option;
    (*

    A message for the Worker, which the Worker can see in the Status section of the web site.

    *)
  3. overrideRejection : Boolean.t option;
    (*

    A flag indicating that an assignment should be approved even if it was previously rejected. Defaults to False.

    *)
}
Sourceval context_ : string
Sourceval make : ?requesterFeedback:??? -> ?overrideRejection:??? -> assignmentId:EntityId.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of Boolean.t | `String of EntityId.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t