{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/arcnautical-com/json-schema/arcnautical-com-create-vessel-monitors-batch-response-schema.json",
  "title": "CreateVesselMonitorsBatchResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/arcnautical-com-vessel-monitors-api-openapi.yml#/components/schemas/CreateVesselMonitorsBatchResponse",
  "type": "object",
  "required": [
    "created",
    "already_monitored",
    "invalid",
    "limit_exceeded",
    "results"
  ],
  "properties": {
    "created": {
      "type": "integer"
    },
    "already_monitored": {
      "type": "integer",
      "description": "Hulls already watched. A SUCCESS — this is what makes a re-run a no-op."
    },
    "invalid": {
      "type": "integer"
    },
    "limit_exceeded": {
      "type": "integer",
      "description": "Hulls refused because the account monitor cap was reached."
    },
    "monitor_limit": {
      "type": "integer"
    },
    "monitors_used": {
      "type": "integer"
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "index",
          "status"
        ],
        "properties": {
          "index": {
            "type": "integer",
            "description": "Position in the request array."
          },
          "imo": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "created",
              "already_monitored",
              "invalid",
              "limit_exceeded"
            ]
          },
          "id": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The monitor id — newly created, or the existing one."
          },
          "imo_check_digit_valid": {
            "type": "boolean"
          },
          "message": {
            "type": "string",
            "description": "Why this hull was not enrolled."
          }
        }
      }
    }
  }
}