Create HIT Type

POST /v1/create-hit-type

See original API description on Amazon Mechanical Turk.

Headers

  • Content-Type string Required

    Values are application/x-amz-json-1.1 or application/json. Default value is application/json.

Body

  • Title string Required
  • Description string Required
  • Reward string Required
  • AssignmentDurationInSeconds integer Required
  • Keywords string
  • AutoApprovalDelayInSeconds integer
  • QualificationRequirements array[object]
    Hide QualificationRequirements attributes Show QualificationRequirements attributes array[object]
    • QualificationTypeId string Required
    • Comparator string Required
    • IntegerValues array[integer]
    • LocaleValues array[object]
      Hide LocaleValues attributes Show LocaleValues attributes array[object]
      • Country string Required
      • Subdivision string
    • RequiredToPreview boolean Deprecated
    • ActionsGuarded string

Responses

  • 404

    Resource not found

  • 200

    OK

    Hide response attribute Show response attribute object
    • HITTypeId string Required
POST /v1/create-hit-type
curl \
 -X POST https://yourcrowd.ai.moda/api/v1/create-hit-type \
 -H "Content-Type: application/json" \
 -d '{"Title":"Title example","Description":"Description example","Reward":"Reward example","AssignmentDurationInSeconds":1,"Keywords":"Keywords example","AutoApprovalDelayInSeconds":1,"QualificationRequirements":[{"QualificationTypeId":"QualificationTypeId example","Comparator":"Comparator example","IntegerValues":[1],"LocaleValues":[{"Country":"Country example","Subdivision":"Subdivision example"}],"RequiredToPreview":true,"ActionsGuarded":"ActionsGuarded example"}]}'
Request example
# Headers
Content-Type: application/json

# Payload
{
  "Title": "Title example",
  "Description": "Description example",
  "Reward": "Reward example",
  "AssignmentDurationInSeconds": 1,
  "Keywords": "Keywords example",
  "AutoApprovalDelayInSeconds": 1,
  "QualificationRequirements": [
    {
      "QualificationTypeId": "QualificationTypeId example",
      "Comparator": "Comparator example",
      "IntegerValues": [
        1
      ],
      "LocaleValues": [
        {
          "Country": "Country example",
          "Subdivision": "Subdivision example"
        }
      ],
      "RequiredToPreview": true,
      "ActionsGuarded": "ActionsGuarded example"
    }
  ]
}
Request examples
# Headers
Content-Type: application/json

# Payload
{
  "Title": "Title example",
  "Description": "Description example",
  "Reward": "Reward example",
  "AssignmentDurationInSeconds": 1,
  "Keywords": "Keywords example",
  "AutoApprovalDelayInSeconds": 1,
  "QualificationRequirements": [
    {
      "QualificationTypeId": "QualificationTypeId example",
      "Comparator": "Comparator example",
      "IntegerValues": [
        1
      ],
      "LocaleValues": [
        {
          "Country": "Country example",
          "Subdivision": "Subdivision example"
        }
      ],
      "RequiredToPreview": true,
      "ActionsGuarded": "ActionsGuarded example"
    }
  ]
}
Response examples (200)
{
  "HITTypeId": "123RVWYBAZW00EXAMPLE"
}
Response examples (200)
{
  "HITTypeId": "123RVWYBAZW00EXAMPLE"
}