Update Template’s Question

Updates Template’s Question.

Request

PATCH https://ttv.microworkers.com/api/v2/templates/{id}/questions/{questionId}

Parameters

Path Parameter

Name

Type

Description

id

string

The ID of Template.

questionId

string

The ID of Question.

Request Body

{
  "required": boolean,
  "uniqueAnswer": {
    "enabled": boolean,
    "type": string
  }
}

UpdateQuestionRequest

Property

Type

Description

required

boolean

Enables/disables “required Question” flag.

uniqueAnswer

UniqueAnswerRequest

Unique Answer settings. 1

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

1

Unique Answers Feature Microworkers Blog.