Output data

Output data is the response parameters. These parameters are used for validating the received responses in a task. For example, if you specify that the response must have at least 10 characters, the user will get a message about the incorrect response when attempting to enter a shorter answer.

Go the the project page and set the parameters using the way that is easier for you:

    Attention. If you change the set of mandatory fields or their parameters, the changes are applied only to newly created pools. Existing pools will work according to the previous version of the project.

    In the output data fields

    Click Add field in the Specifications block on the project page and fill in the fields:

    Field

    Description

    Name

    Object identifier (in lowercase).

    Type

    Data type:

    • String.

    • URL.

    • Boolean.

    • Integer.

    • Float.

    • File.

    • Coordinates.

    • JSON.

    Required

    Whether filling in the field is required when completing the task.

    Allowed values

    Allowed values (for string, integer, float and boolean data types).

    Min length

    Restrictions for the length of the string.

    Max length

    Min value

    Range of values for float and integer numbers.

    Max value

    Current location

    Fill in the coordinates field with the user‘s current coordinates.

    In JSON format

    Click and set output data parameters in JSON. Possible types of fields and their parameters:

    String
    "string_response": {
        "type": "string",
        "required": true,
        "min_length": 10,
        "max_length": 100,
        "allowed_values": ["a11", "b22", "c33"],
        "pattern": "^[a-zA-Z0-9]"
    URL.
    "url_response": {
        "type": "url",
        "required": true
    }
    Boolean.
    "boolean_response": {
        "type": "boolean",
        "required": true
    }
    Integer
    "integer_response": {
        "type": "array_integer",
        "required": false,
        "min_value": 1,
        "max_value": 100,
        "allowed_values": [10, 20, 30]
    }
    Float.
    "float_response": {
        "type": "float",
        "required": true,
        "min_value": 10.11,
        "max_value": 65.51
    }
    File.
    "file_response": {
        "type": "file",
        "required": true
    }
    Coordinates.
    "coordinates_field_id": {
        "type": "coordinates",
        "required": true,
        "current_location": true
    }
    JSON
    "json_response": {
        "type": "json",
        "required": true
    }

    Field

    Description

    Required

    <id_response>

    Identifier of the field.

    Yes.

    type

    Data type:

    • url — URL of an image, page, and so on.

    • boolean — Logical data type (true/false).

    • string — String.

    • float — Floating point number.

    • coordinates — Geographical coordinates, such as “53.910236,27.531110”.

    • json — JSON object.

    • file — File.

    Yes.

    required

    Whether filling in the field is required (true/false). By default, it is true.

    No.

    min_value

    Minimum value.

    No.

    max_value

    Maximum value.

    No.

    allowed_values

    Allowed values (array).

    No.

    min_length

    Minimum length of the string.

    No.

    max_length

    Maximum length of the string.

    No.

    current_location

    Only for the coordinates data type: fill in the field with the user's current coordinates (true/false). Used in tasks for a mobile app.

    No.

    pattern

    Regular expressiob a string must match.

    No

    Below is an example of output data description in a task for detecting “adult content” in an image. The task includes a required input field with the “result” ID. This field has three options: “ADULT”, “NOT_ADULT”, “404”. These values will later be listed in the response file.

    {
        "result": {
            "type": "string",
            "required": true,
            "allowed_values": ["ADULT", "NOT_ADULT", "404"]
        }
    }