Input data

Input data is the parameters of objects shown in the task, such as a URL, image, or text. You must assign an identifier to each object, define the data type and specify if the object is required in a task.

Go to 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 input 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.

    • 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

    In JSON format

    Click and set input data parameters in JSON. Possible types of objects and their parameters:

    String
    "my_string": {
        "type": "string",
        "required": true,
        "min_length": 10,
        "max_length": 100,    
        "allowed_values": ["a11", "b22", "c33"],
        "pattern": "^[a-zA-Z0-9]"
    }
    URL.
    "my_url": {
        "type": "url",
        "required": true
    }
    Boolean.
    "my_boolean": {
        "type": "boolean",
        "required": true
    }
    Integer
    "my_integer": {
        "type": "integer",
        "required": false,
        "min_value": 1,
        "max_value": 100,
        "allowed_values": [10, 20, 30]
    }
    Float.
    "my_float": {
        "type": "float",
        "required": true,
        "min_value": 10.11,
        "max_value": 65.51
        "allowed_values": [10.15, 20.15, 30.15]
    }
    Coordinates.
    "my_coordinates": {
        "type": "coordinates",
        "required": true
    }
    JSON
    "my_json": {
        "type": "json",
        "required": true
    }

    Field

    Description

    Required

    <id>

    Object identifier in lowercase.

    Yes.

    type

    Data type:

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

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

    • integer — Integer number.

    • string — String.

    • float — Floating point number.

    • json — JSON object.

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

    Yes.

    required

    Whether the object is required (true/false). By default, 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.

    pattern

    Regular expression a string must match.

    No

    Below is an example of JSON for showing a picture in the task. JSON contains parameters:

    • Data type — URL (pictures must be stored on the internet). Add links to images when loading tasks to the pool.

    • Whether an image is required in the task.

    {
        "image": {
            "type": "url",
            "required": true
        }
    }