Update Question

Updates Question settings.

Request

PATCH https://ttv.microworkers.com/api/v2/hire-group-campaigns/{campaignId}/questions/{questionId}

Parameters

Path Parameter

Name

Type

Description

campaignId

string

The ID of Campaign.

questionId

string

The ID of Question.

Request Body

{
  "testCaseEnabled": boolean,
  "uniqueAnswer": {
    "enabled": boolean,
    "type": string
  },
  "complexity": integer,
  "required": boolean
}

CampaignQuestionPatchRequest

Property

Type

Description

testCaseEnabled

boolean

Enables/disables test case for the Question.

uniqueAnswer

UniqueAnswerRequest

Unique Answer settings. [1]

complexity

integer

Value from 1 to 10. Question with higher complexity should have higher value.

required

boolean

Set to true if Answer to the Question is required.

UniqueAnswerRequest

Property

Type

Description

enabled

boolean

Enables/disables unique Answer check.

type

string

Value can be either UNIQUE_PER_CAMPAIGN or UNIQUE_PER_QUESTION.

  • If the value of type is set to UNIQUE_PER_CAMPAIGN, the system will check all Answers to all Questions and will only allow the Answer if it is unique.

  • If the value of type is set to UNIQUE_PER_QUESTION, the system will allow the Worker to submit the Answer to a certain Question if the Answer is unique.

Response

Response HTTP Codes

Http Code

Response Type

Description

204

No Content (OK)

400

Validation Failed

401

Unauthorized

403

Access denied

404

Not found