{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://astrocollabapi.com/schemas/Checkin.schema.json",
  "title": "Checkin",
  "type": "object",
  "required": [
    "equipment_id",
    "observed_at"
  ],
  "properties": {
    "equipment_id": {
      "$ref": "Uuid.schema.json"
    },
    "project_ids": {
      "type": "array",
      "items": {
        "$ref": "Uuid.schema.json"
      },
      "minItems": 1,
      "maxItems": 100,
      "description": "Limit the choice to these projects. By default the server considers every project you are active in.",
      "uniqueItems": true
    },
    "assignment_id": {
      "$ref": "Uuid.schema.json",
      "description": "The assignment the rig is working on, if any."
    },
    "unsubmitted_captures": {
      "type": "array",
      "items": {
        "$ref": "UnsubmittedCaptures.schema.json"
      },
      "minItems": 0,
      "maxItems": 100,
      "description": "Everything this rig has captured but not yet submitted, as totals per panel. Each\nreport replaces the rig's last one; send `[]` once all is submitted, or omit the\nfield to leave the last report as it is. For a masters project, this is how the\nserver learns of subs waiting to be stacked."
    },
    "observed_at": {
      "$ref": "Timestamp.schema.json"
    }
  },
  "description": "Ask what this rig should image.",
  "additionalProperties": false
}
