Request Format

To create a task with links, simply add the links parameter to your task creation request using the format described above.

Each key-value defining a link should have the following structure:

  • Key: the label of the link
  • Value: an object that should have the following keys:
    • is_bidirectional: a boolean value denoting whether link is directional or not
    • from_allowed_labels: a list of labels of the geometries that the link can be linked from
    • to_allowed_labels: a list of labels of the geometries that the link can be linked to
{
  "callback_url": "http://www.example.com/callback",
  "instruction": "Annotate the merchandises and priceTags, then link the merchandises to their correspondent price tags",
  "attachment_type": "image",
  "attachment": "http://i.imgur.com/v4cBreD.jpg",
  "geometries": {
    "box": {
      "objects_to_annotate": [
        "merchandise",
        "priceTag"
      ]
    }
  },
  "links": {
    "merchandiseToPriceTag": [
      {
        "is_bidirectional": false,
        "from_allowed_labels": [
          "merchandise"
        ],
        "to_allowed_labels": [
          "priceTag"
        ]
      }
    ]
  }
  ...
}