{
  "$id": "https://firefox-ci-tc.services.mozilla.com/schemas/index/v1/insert-task-request.json#",
  "$schema": "https://firefox-ci-tc.services.mozilla.com/schemas/common/metaschema.json#",
  "additionalProperties": false,
  "description": "Representation of the index entry to insert.\n",
  "properties": {
    "data": {
      "description": "This is an arbitrary JSON object. Feel free to put whatever data you want\nhere, but do limit it, you'll get errors if you store more than 32KB.\nSo stay well, below that limit.\n",
      "title": "Task Specific Data",
      "type": "object"
    },
    "expires": {
      "description": "Date at which this entry expires from the task index.\n",
      "format": "date-time",
      "title": "Expiration",
      "type": "string"
    },
    "rank": {
      "description": "If multiple tasks are indexed with the same `namespace` the task with the\nhighest `rank` will be stored and returned in later requests. If two tasks\nhas the same `rank` the latest task will be stored.\n",
      "title": "Rank",
      "type": "number"
    },
    "taskId": {
      "description": "Unique task identifier, this is UUID encoded as\n[URL-safe base64](http://tools.ietf.org/html/rfc4648#section-5) and\nstripped of `=` padding.\n",
      "pattern": "^[A-Za-z0-9_-]{8}[Q-T][A-Za-z0-9_-][CGKOSWaeimquy26-][A-Za-z0-9_-]{10}[AQgw]$",
      "title": "Task Identifier",
      "type": "string"
    }
  },
  "required": [
    "taskId",
    "rank",
    "data",
    "expires"
  ],
  "title": "Insert Task Request",
  "type": "object"
}