{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$ref": "#/definitions/SCBulkParameters",
  "description": "A bulk request\n\nParameters to be sent to request a new bulk.",
  "definitions": {
    "SCBulkParameters": {
      "type": "object",
      "properties": {
        "expiration": {
          "$ref": "#/definitions/SCISO8601Date",
          "description": "Expiration of bulk\n\nIf the date is hit and the bulk is not done, it will be deleted and all data removed. Defaults to one hour."
        },
        "source": {
          "type": "string",
          "description": "Source of data for this bulk\n\nA short \"description\" of the source of the data to identify it inside the database. A second bulk with the same source overrides the data of the first bulk once it is done."
        },
        "type": {
          "$ref": "#/definitions/SCThingType",
          "description": "Type of things that are indexed in this bulk."
        }
      },
      "required": [
        "source",
        "type"
      ],
      "additionalProperties": false,
      "description": "Parameters for a bulk"
    },
    "SCISO8601Date": {
      "type": "string",
      "description": "An ISO8601 date",
      "pattern": "^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])(T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])([\\.,][0-9]{0,7})?(Z|[+-](?:2[0-3]|[01][0-9])(:?[0-5][0-9])?)?)?$"
    },
    "SCThingType": {
      "type": "string",
      "enum": [
        "assessment",
        "academic event",
        "article",
        "book",
        "periodical",
        "building",
        "catalog",
        "certification",
        "contact point",
        "course of study",
        "date series",
        "diff",
        "dish",
        "favorite",
        "floor",
        "id card",
        "message",
        "organization",
        "person",
        "point of interest",
        "publication event",
        "room",
        "semester",
        "setting",
        "sport course",
        "study module",
        "ticket",
        "todo",
        "tour",
        "video",
        "job posting"
      ],
      "description": "Types a thing can be"
    },
    "SCSCBulkRequest": {
      "$ref": "#/definitions/SCBulkParameters",
      "description": "A bulk request\n\nParameters to be sent to request a new bulk."
    }
  },
  "$id": "https://core.stapps.tu-berlin.de/v4.0.2/lib/schema/SCBulkRequest.json"
}